GrapeCity SPREAD for Windows Forms 11.0J
GetStream メソッド


指定したリソースを含むアセンブリ。このアセンブリがnullの場合は、指定したリソースがファイルであることを意味します。
指定したリソースのパス。
指定したリソースからストリームを取得します。
構文
'Declaration
 
Public Shared Function GetStream( _
   ByVal assembly As Assembly, _
   ByVal resourcePath As String _
) As Stream
'使用法
 
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
)

パラメータ

assembly
指定したリソースを含むアセンブリ。このアセンブリがnullの場合は、指定したリソースがファイルであることを意味します。
resourcePath
指定したリソースのパス。

戻り値の型

指定したリソースから取得されたストリーム。指定したリソースが存在しない場合、または開けない場合は、nullを返します。
参照

DPIUtils クラス
DPIUtils メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.