Gets the specified ResourceSet.
[Visual Basic] Overridable Public Function GetResourceSet( _ ByVal culture As CultureInfo, _ ByVal createIfNotExists As Boolean, _ ByVal tryParents As Boolean _ ) As ResourceSet [C#] public virtual ResourceSet GetResourceSet( CultureInfo culture, bool createIfNotExists, bool tryParents ); [C++] public: virtual ResourceSet* GetResourceSet( CultureInfo* culture, bool createIfNotExists, bool tryParents ); [JScript] public function GetResourceSet( culture : CultureInfo, createIfNotExists : Boolean, tryParents : Boolean ) : ResourceSet;
The specified ResourceSet.
Exception Type | Condition |
---|---|
ArgumentNullException | if culture is a null reference (in Visual Basic Nothing). |
The ResourceSet that is returned represents the resources localized for the specified culture. If the resources have not been localized for that culture and tryParents is true, the ResourceSet that is returned is localized for a "best match" (this is accomplished via Parent). Otherwise, a a null reference (Nothing) reference is returned.
The parameters let you control whether the ResourceSet is created if it hasn't been loaded yet, and whether parent CultureInfo objects should be loaded as well for resource inheritance.
ResourceManager Class | ResourceManager Members | System.Resources Namespace