Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.DPISupporting Namespace / DPIUtils Class / IsResourceExists Method
The assembly in which we check the specified resource.
Path to the specified resource.


In This Topic
    IsResourceExists Method
    In This Topic
    Check if the specified resource exists in the specified assembly. If the specified assembly is null, check if the file specified by

    resourcePath

    exists.
    Syntax
    'Declaration
     
    
    Public Shared Function IsResourceExists( _
       ByVal assembly As Assembly, _
       ByVal resourcePath As String _
    ) As Boolean
    'Usage
     
    
    Dim assembly As Assembly
    Dim resourcePath As String
    Dim value As Boolean
     
    value = DPIUtils.IsResourceExists(assembly, resourcePath)
    public static bool IsResourceExists( 
       Assembly assembly,
       string resourcePath
    )

    Parameters

    assembly
    The assembly in which we check the specified resource.
    resourcePath
    Path to the specified resource.

    Return Value

    true if the specified resource exists, otherwise false.
    See Also