| 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.ResourcesAssembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
SyntaxStream ReadResourceData(
CultureInfo culture,
LanguageResourceType t,
bool fallback
)
Function ReadResourceData (
culture As CultureInfo,
t As LanguageResourceType,
fallback As Boolean
) As Stream
Stream^ ReadResourceData(
CultureInfo^ culture,
LanguageResourceType t,
bool fallback
)
abstract ReadResourceData :
culture : CultureInfo *
t : LanguageResourceType *
fallback : bool -> Stream
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:
StreamA 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
Comments