Assembly.GetManifestResourceStream Method (String)

July 28, 2014

Loads the specified manifest resource from this assembly.

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

public virtual Stream GetManifestResourceStream(
	string name
)

Parameters

name
Type: System.String
The case-sensitive name of the manifest resource being requested.

Return Value

Type: System.IO.Stream
A Stream representing the manifest resource; null if no resources were specified during compilation, or if the resource is not visible to the caller.

ExceptionCondition
ArgumentNullException

The name parameter is null.

ArgumentException

The name parameter is an empty string ("").

FileLoadException

A file that was found could not be loaded.

FileNotFoundException

name was not found.

BadImageFormatException

name is not a valid assembly.

MemberAccessException

The method is invoked late-bound through mechanisms such as Type.InvokeMember.

Resource information is returned only if the resource is visible to the caller. This method returns null if a private resource in another assembly is accessed

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft