ResourceManagerGetStream Method (String, CultureInfo) |
Returns an unmanaged memory stream object from the specified resource, using the specified culture.
Namespace: System.ResourcesAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public UnmanagedMemoryStream GetStream(
string name,
CultureInfo culture
)
Parameters
- name
- Type: SystemString
The name of a resource. - culture
- Type: System.GlobalizationCultureInfo
An object that specifies the culture to use for the resource lookup. If culture is null, the culture for the current thread is used.
Return Value
Type:
UnmanagedMemoryStreamAn
UnmanagedMemoryStream object.
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