This documentation is archived and is not being maintained.

Assembly.GetManifestResourceStream Method (String)

.NET Framework 1.1

Loads the specified manifest resource from this assembly.

[Visual Basic]
Overloads Public Overridable Function GetManifestResourceStream( _
   ByVal name As String _
) As Stream
public virtual Stream GetManifestResourceStream(
 string name
public: virtual Stream* GetManifestResourceStream(
 String* name
public function GetManifestResourceStream(
   name : String
) : Stream;


The name of the manifest resource being requested.

Return Value

A Stream representing this manifest resource.


Exception Type Condition
ArgumentNullException The name parameter is a null reference (Nothing in Visual Basic).
ArgumentException The name parameter is the empty string ("").
SecurityException The caller does not have the required permission.


This method works on both public and private resources.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

.NET Framework Security: 

See Also

Assembly Class | Assembly Members | System.Reflection Namespace | Assembly.GetManifestResourceStream Overload List | Assembly Manifest