AssemblyBuilder::GetFile Method (String^)

 

Gets a FileStream for the specified file in the file table of the manifest of this assembly.

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

public:
virtual FileStream^ GetFile(
	String^ name
) override

Parameters

name
Type: System::String^

The name of the specified file.

Return Value

Type: System.IO::FileStream^

A FileStream for the specified file, or null, if the file is not found.

Exception Condition
NotSupportedException

This method is not currently supported.

SecurityException

The caller does not have the required permission.

name should not include the path to the file.

ReflectionPermission

when invoked late-bound through mechanisms such as Type::InvokeMember. Associated enumeration: ReflectionPermissionFlag::MemberAccess.

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