ResourceManager.InternalGetResourceSet Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides the implementation for finding a ResourceSet.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Protected Overridable Function InternalGetResourceSet ( _ culture As CultureInfo, _ createIfNotExists As Boolean, _ tryParents As Boolean _ ) As ResourceSet
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.
| 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. |
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.