ResourceManager.InternalGetResourceSet(CultureInfo, Boolean, Boolean) ResourceManager.InternalGetResourceSet(CultureInfo, Boolean, Boolean) ResourceManager.InternalGetResourceSet(CultureInfo, Boolean, Boolean) ResourceManager.InternalGetResourceSet(CultureInfo, Boolean, Boolean) Method

Definition

Provides the implementation for finding a resource set.

protected:
 virtual System::Resources::ResourceSet ^ InternalGetResourceSet(System::Globalization::CultureInfo ^ culture, bool createIfNotExists, bool tryParents);
protected virtual System.Resources.ResourceSet InternalGetResourceSet (System.Globalization.CultureInfo culture, bool createIfNotExists, bool tryParents);
abstract member InternalGetResourceSet : System.Globalization.CultureInfo * bool * bool -> System.Resources.ResourceSet
override this.InternalGetResourceSet : System.Globalization.CultureInfo * bool * bool -> System.Resources.ResourceSet
Protected Overridable Function InternalGetResourceSet (culture As CultureInfo, createIfNotExists As Boolean, tryParents As Boolean) As ResourceSet

Parameters

culture
CultureInfo CultureInfo CultureInfo CultureInfo

The culture object to look for.

createIfNotExists
Boolean Boolean Boolean Boolean

true to load the resource set, if it has not been loaded yet; otherwise, false.

tryParents
Boolean Boolean Boolean Boolean

true to check parent CultureInfo objects if the resource set cannot be loaded; otherwise, false.

Returns

The specified resource set.

Exceptions

The main assembly does not contain a .resources file, which is required to look up a resource.

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(CultureInfo, Boolean, Boolean), GetString(String), and GetObject(String) methods do all the necessary synchronization.

Security

ReflectionPermission
when invoked late-bound through mechanisms such as InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]). Associated enumeration: MemberAccess.

Applies to

See Also