'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.