Assembly.GetFiles Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public virtual FileStream[] GetFiles()

Return Value

Type: System.IO.FileStream[]

An array of streams that contain the files.

Exception Condition

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.

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

.NET Framework
Available since 1.1
Return to top