ResourceManagerGetStream Method (String) |
Returns an unmanaged memory stream object from the specified resource.
Namespace: System.ResourcesAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public UnmanagedMemoryStream GetStream(
string name
)
Parameters
- name
- Type: SystemString
The name of a resource.
Return Value
Type:
UnmanagedMemoryStreamAn unmanaged memory stream object object that represents a resource.
Exceptions Exception | Condition |
---|
InvalidOperationException | The value of the specified resource is not a MemoryStream object. |
ArgumentNullException | name is null. |
MissingManifestResourceException | No 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. |
MissingSatelliteAssemblyException | The 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