AssemblyBuilder.GetFile(String) AssemblyBuilder.GetFile(String) AssemblyBuilder.GetFile(String) AssemblyBuilder.GetFile(String) Method

Definition

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

public:
 override System::IO::FileStream ^ GetFile(System::String ^ name);
public override System.IO.FileStream GetFile (string name);
override this.GetFile : string -> System.IO.FileStream
Public Overrides Function GetFile (name As String) As FileStream

Parameters

name
String String String String

The name of the specified file.

Returns

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

Exceptions

The caller does not have the required permission.

Remarks

name should not include the path to the file.

Security

ReflectionPermission
when invoked late-bound through mechanisms such as InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]). Associated enumeration: MemberAccess.

Applies to