Click or drag to resize
IResourceDataAccessorReadResourceData Method
Returns the data stream for the specified resource type and culture. If an appropriate resource is not found, an exception is thrown and/or null is returned. Callers should check for both conditions, and check the resource status before the stream is requested.

Namespace: Sdl.LanguagePlatform.Core.Resources
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
Stream ReadResourceData(
	CultureInfo culture,
	LanguageResourceType t,
	bool fallback
)

Parameters

culture
Type: System.GlobalizationCultureInfo
The culture for which a resource is requested.
t
Type: Sdl.LanguagePlatform.Core.ResourcesLanguageResourceType
The language resource type which is requested.
fallback
Type: SystemBoolean
If true, a resource accessor may fallback to a more general culture. If false, no fallback may be performed.

Return Value

Type: Stream
A stream containing the data for the requested resource, or null if the resource is not available (in which case callers may also throw an exception).
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments