NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ResourceManager.GetResourceSet

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;

Parameters

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

Return Value

The specified ResourceSet.

Exceptions

Exception Type Condition
ArgumentNullException if culture is a null reference (in Visual Basic Nothing).

Remarks

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.

See Also

ResourceManager Class | ResourceManager Members | System.Resources Namespace