ResourceManager.GetStream Method (String, CultureInfo)
Returns an UnmanagedMemoryStream object from the specified resource, using the specified culture.
Assembly: mscorlib (in mscorlib.dll)
[ComVisibleAttribute(false)] public UnmanagedMemoryStream GetStream( string name, CultureInfo culture )
- Type: System.String
The name of a resource.
- Type: System.Globalization.CultureInfo
The culture to use for the resource lookup. If culture is null, the culture for the current thread is used.
Return ValueType: System.IO.UnmanagedMemoryStream
An unmanaged memory stream.
The GetStream method takes the name of a resource that is stored as a MemoryStream object, gets the value of the Object resource, and returns an UnmanagedMemoryStream object. The resource lookup is based on the culture specified by the culture parameter. If culture is null, the culture for the current thread is used.
This method is useful primarily for performance reasons: retrieving a resource as a UnmanagedMemoryStream object instead of an explicit object can improve performance.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.