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

Namespace: System.Resources
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: UnmanagedMemoryStream
An UnmanagedMemoryStream object.
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