ResourceManager::InternalGetResourceSet Method (CultureInfo^, Boolean, Boolean)
Provides the implementation for finding a resource set.
Assembly: mscorlib (in mscorlib.dll)
protected: virtual ResourceSet^ InternalGetResourceSet( CultureInfo^ culture, bool createIfNotExists, bool tryParents )
Parameters
- culture
-
Type:
System.Globalization::CultureInfo^
The culture object to look for.
- createIfNotExists
-
Type:
System::Boolean
true to load the resource set, if it has not been loaded yet; otherwise, false.
- tryParents
-
Type:
System::Boolean
true to check parent CultureInfo objects if the resource set cannot be loaded; otherwise, false.
| Exception | Condition |
|---|---|
| MissingManifestResourceException | The main assembly does not contain a .resources file, which is required to look up a resource. |
| ExecutionEngineException | There was an internal error in the runtime. |
| MissingSatelliteAssemblyException | The satellite assembly associated with culture could not be located. |
Notes to Inheritors:
This method completes all the work necessary to find a resource set, and can be recursive and reentrant. In other words, this method might load an assembly and trigger an AssemblyLoad event, which then calls back into a ResourceManager object that has not been completely initialized. To avoid taking extra locks, this method is not thread safe. The GetResourceSet, GetString, and GetObject methods do all the necessary synchronization.
when invoked late-bound through mechanisms such as Type::InvokeMember. Associated enumeration: ReflectionPermissionFlag::MemberAccess.
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0