Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.DPISupporting Namespace / DPIUtils Class / GetStream Method
The assembly that contain the specified resource. If the assembly is null, that mean the specified resource is file.
The path of specifed resource.


In This Topic
    GetStream Method (DPIUtils)
    In This Topic
    Get the Stream of the specified resource.
    Syntax
    'Declaration
     
    
    Public Shared Function GetStream( _
       ByVal assembly As Assembly, _
       ByVal resourcePath As String _
    ) As Stream
    'Usage
     
    
    Dim assembly As Assembly
    Dim resourcePath As String
    Dim value As Stream
     
    value = DPIUtils.GetStream(assembly, resourcePath)
    public static Stream GetStream( 
       Assembly assembly,
       string resourcePath
    )

    Parameters

    assembly
    The assembly that contain the specified resource. If the assembly is null, that mean the specified resource is file.
    resourcePath
    The path of specifed resource.

    Return Value

    The Stream from the specified resource. If the specified resource doesn't exist or can't be opened, return null.
    See Also