_Assembly.GetFile(String) 方法

定義

為 COM 物件提供與版本無關的 GetFile(String) 方法之存取權。

public:
 System::IO::FileStream ^ GetFile(System::String ^ name);
public System.IO.FileStream GetFile (string name);
abstract member GetFile : string -> System.IO.FileStream
Public Function GetFile (name As String) As FileStream

參數

name
String

指定檔案的名稱。 切勿包括該檔案的路徑。

傳回

若為指定的檔案,則為 FileStream;如果找不到此檔案,則為 null

備註

此方法適用於從 Unmanaged 程式代碼存取 Managed 類別,不應從 Managed 程式代碼呼叫。

方法 GetFile 會取得 FileStream 這個元件指令清單之檔案資料表中指定檔案的 。

適用於

另請參閱