Assembly.GetFiles Assembly.GetFiles Assembly.GetFiles Assembly.GetFiles Method

定义

获取程序集清单文件表中的文件。Gets the files in the file table of an assembly manifest.

重载

GetFiles() GetFiles() GetFiles() GetFiles()

获取程序集清单文件表中的文件。Gets the files in the file table of an assembly manifest.

GetFiles(Boolean) GetFiles(Boolean) GetFiles(Boolean) GetFiles(Boolean)

获取程序集清单的文件表中的文件,指定是否包括资源模块。Gets the files in the file table of an assembly manifest, specifying whether to include resource modules.

GetFiles() GetFiles() GetFiles() GetFiles()

获取程序集清单文件表中的文件。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()

返回

包含这些文件的流数组。An array of streams that contain the files.

实现

异常

无法加载已找到的文件。A file that was found could not be loaded.

文件不是有效的程序集。A file was not a valid assembly.

注解

此方法适用于公用和专用资源文件。This method works on public and private resource files.

此重载等效于调用GetFiles(Boolean)重载和指定。 falseThis overload is equivalent to calling the GetFiles(Boolean) overload and specifying false.

GetFiles(Boolean) GetFiles(Boolean) GetFiles(Boolean) GetFiles(Boolean)

获取程序集清单的文件表中的文件,指定是否包括资源模块。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()

参数

getResourceModules
Boolean Boolean Boolean Boolean

true 则包括资源模块;否则,为 falsetrue to include resource modules; otherwise, false.

返回

包含这些文件的流数组。An array of streams that contain the files.

实现

异常

无法加载已找到的文件。A file that was found could not be loaded.

文件不是有效的程序集。A file was not a valid assembly.

注解

此方法适用于公用和专用资源文件。This method works on public and private resource files.

适用于