Click or drag to resize
ResourceManagerGetStream Method (String)
Returns an unmanaged memory stream object from the specified resource.

Namespace: System.Resources
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public UnmanagedMemoryStream GetStream(
	string name
)

Parameters

name
Type: SystemString
The name of a resource.

Return Value

Type: UnmanagedMemoryStream
An unmanaged memory stream object object that represents a resource.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe value of the specified resource is not a MemoryStream object.
ArgumentNullExceptionname is null.
MissingManifestResourceExceptionNo usable set of resources is found, and there are no neutral resources. For information about how to handle this exception, see the "Handling MissingManifestResourceException and MissingSatelliteAssemblyException Exceptions" section in the ResourceManager class topic.
MissingSatelliteAssemblyExceptionThe default culture's resources reside in a satellite assembly that could not be found. For information about how to handle this exception, see the "Handling MissingManifestResourceException and MissingSatelliteAssemblyException Exceptions" section in the ResourceManager class topic.
See Also