This documentation is archived and is not being maintained.

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)

public virtual FileStream[] GetFiles (
	bool getResourceModules
public FileStream[] GetFiles (
	boolean getResourceModules
public function GetFiles (
	getResourceModules : boolean
) : FileStream[]
Not applicable.



true to include resource modules; otherwise, false.

Return Value

An array of FileStream objects.

Exception typeCondition


A file that was found could not be loaded.


A file was not found.


A file was not a valid assembly.

This method works on public and private resource files.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0