แก้ไข

แชร์ผ่าน


_Assembly.GetFile(String) Method

Definition

Provides COM objects with version-independent access to the GetFile(String) method.

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

Parameters

name
String

The name of the specified file. Do not include the path to the file.

Returns

A FileStream for the specified file, or null if the file is not found.

Remarks

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The GetFile method gets a FileStream for the specified file in the file table of the manifest of this assembly.

Applies to

See also