Export (0) Print
Expand All

ResourceManager.InternalGetResourceSet Method

Provides the implementation for finding a ResourceSet.

[Visual Basic]
Protected Overridable Function InternalGetResourceSet( _
   ByVal culture As CultureInfo, _
   ByVal createIfNotExists As Boolean, _
   ByVal tryParents As Boolean _
) As ResourceSet
protected virtual ResourceSet InternalGetResourceSet(
 CultureInfo culture,
 bool createIfNotExists,
 bool tryParents
protected: virtual ResourceSet* InternalGetResourceSet(
 CultureInfo* culture,
 bool createIfNotExists,
 bool tryParents
protected function InternalGetResourceSet(
   culture : CultureInfo,
 createIfNotExists : Boolean,
 tryParents : Boolean
) : ResourceSet;


The CultureInfo to look for.
If true and if the ResourceSet has not been loaded yet, load it.
If the ResourceSet cannot be loaded, try parent CultureInfo objects to see if they exist.

Return Value

The specified ResourceSet.


Exception Type Condition
MissingManifestResourceException The main assembly does not contain a .resources file and it is required to look up a resource.


Notes to Inheritors:  This method completes all the work necessary to find a ResourceSet, and can be recursive and reentrant. In other words, this method might load an assembly, triggering an AssemblyLoad event, which then calls back into the not-completely-initialized ResourceManager. To avoid taking extra locks, it is not thread safe. GetResourceSet, GetString, and GetObject do all the necessary synchronization.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

.NET Framework Security: 

See Also

ResourceManager Class | ResourceManager Members | System.Resources Namespace | CultureInfo | Developing World-Ready Applications

© 2015 Microsoft