Assembly.GetFiles Method (Boolean)

 

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

Namespace:   System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

abstract GetFiles : 
        getResourceModules:bool -> FileStream[]
override GetFiles : 
        getResourceModules:bool -> FileStream[]

Parameters

getResourceModules
Type: System.Boolean

true to include resource modules; otherwise, false.

Return Value

Type: System.IO.FileStream[]

An array of streams that contain the files.

Exception Condition
FileLoadException

A file that was found could not be loaded.

FileNotFoundException

A file was not found.

BadImageFormatException

A file was not a valid assembly.

This method works on public and private resource files.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show: