Muokkaa

Jaa


Assembly.GetFiles Method

Definition

Gets the files in the file table of an assembly manifest.

Overloads

GetFiles()

Gets the files in the file table of an assembly manifest.

GetFiles(Boolean)

Gets the files in the file table of an assembly manifest, specifying whether to include resource modules.

GetFiles()

Source:
Assembly.cs
Source:
Assembly.cs
Source:
Assembly.cs

Gets the files in the file table of an assembly manifest.

public:
 virtual cli::array <System::IO::FileStream ^> ^ GetFiles();
public virtual System.IO.FileStream[] GetFiles ();
abstract member GetFiles : unit -> System.IO.FileStream[]
override this.GetFiles : unit -> System.IO.FileStream[]
Public Overridable Function GetFiles () As FileStream()

Returns

An array of streams that contain the files.

Implements

Exceptions

A file that was found could not be loaded.

A file was not found.

A file was not a valid assembly.

Remarks

This method works on public and private resource files.

This overload is equivalent to calling the GetFiles(Boolean) overload and specifying false.

Applies to

GetFiles(Boolean)

Source:
Assembly.cs
Source:
Assembly.cs
Source:
Assembly.cs

Gets the files in the file table of an assembly manifest, specifying whether to include resource modules.

public:
 virtual cli::array <System::IO::FileStream ^> ^ GetFiles(bool getResourceModules);
public virtual System.IO.FileStream[] GetFiles (bool getResourceModules);
abstract member GetFiles : bool -> System.IO.FileStream[]
override this.GetFiles : bool -> System.IO.FileStream[]
Public Overridable Function GetFiles (getResourceModules As Boolean) As FileStream()

Parameters

getResourceModules
Boolean

true to include resource modules; otherwise, false.

Returns

An array of streams that contain the files.

Implements

Exceptions

A file that was found could not be loaded.

A file was not found.

A file was not a valid assembly.

Remarks

This method works on public and private resource files.

Applies to