Get File(String) Method
Gets a FileStream for the specified file in the file table of the manifest of this assembly.
public: virtual System::IO::FileStream ^ GetFile(System::String ^ name);
public virtual System.IO.FileStream GetFile (string name);
abstract member GetFile : string -> System.IO.FileStream override this.GetFile : string -> System.IO.FileStream
Public Overridable Function GetFile (name As String) As FileStream
The name of the specified file. Do not include the path to the file.
A stream that contains the specified file, or
null if the file is not found.
A file that was found could not be loaded.
name parameter is
name parameter is an empty string ("").
name was not found.
name is not a valid assembly.
This method works on both public and private resource files.
name should not include the path to the file.