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.GetObject (String, CultureInfo)

Gets the value of the specified resource. The resource that is returned is localized for the specified culture. If the resource has not been localized for that culture, the resource that is returned is localized for a "best match" (this is accomplished via the culture's CurrentUICulture property). Otherwise, a a null reference (in Visual Basic Nothing) reference is returned.

[Visual Basic]
Overloads Overridable Public Function GetObject( _
   ByVal name As String, _
   ByVal culture As CultureInfo _
) As Object
[C#]
public virtual object GetObject(
   string name,
   CultureInfo culture
);
[C++]
public: virtual Object* GetObject(
   String* name,
   CultureInfo* culture
);
[JScript]
public function GetObject(
   name : String,
   culture : CultureInfo
) : Object;

Parameters

name
The name of the resource to get.
culture
The CultureInfo object that represents the culture for which the resource is to be localized. Note that if the resource is not localized for this culture, the culture's Parent property will be called successively in search of a match. If this value is a null reference (Nothing), the CultureInfo is obtained via the culture's CurrentUICulture property.

Return Value

The value of the resource, localized for the specified culture. If a "best match" is not possible, a null reference (Nothing) is returned.

Exceptions

Exception Type Condition
ArgumentNullException if name is a null reference (Nothing)

See Also

ResourceManager Class | ResourceManager Members | System.Resources Namespace | ResourceManager.GetObject Overload List