ResourceManager.InternalGetResourceSet Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Provides the implementation for finding a ResourceSet.
Namespace: System.Resources
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
<SecuritySafeCriticalAttribute> _
Protected Overridable Function InternalGetResourceSet ( _
culture As CultureInfo, _
createIfNotExists As Boolean, _
tryParents As Boolean _
) As ResourceSet
[SecuritySafeCriticalAttribute]
protected virtual ResourceSet InternalGetResourceSet(
CultureInfo culture,
bool createIfNotExists,
bool tryParents
)
Parameters
- culture
Type: System.Globalization.CultureInfo
The culture to look for.
- createIfNotExists
Type: System.Boolean
true to load the ResourceSet, if it has not been loaded yet; otherwise, false.
- tryParents
Type: System.Boolean
true to try parent CultureInfo objects to see if they exist if ResourceSet cannot be loaded; otherwise, false.
Return Value
Type: System.Resources.ResourceSet
The specified resource set.
Exceptions
Exception | Condition |
---|---|
MissingManifestResourceException | The main assembly does not contain a .resources file and it is required to look up a resource. |
ExecutionEngineException | There was an internal error in the runtime. |
Remarks
Notes to Inheritors
This method completes all the work necessary to find a ResourceSet, and can be recursive and reentrant. To avoid taking extra locks, it is not thread safe. GetResourceSet, GetString, and GetObject do all the necessary synchronization.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Xbox 360, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also