SPUserResource.GetValueForUICulture method

Returns the value of the resource for the specified culture.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetValueForUICulture ( _
    cultureInfo As CultureInfo _
) As String
'Usage
Dim instance As SPUserResource
Dim cultureInfo As CultureInfo
Dim returnValue As String

returnValue = instance.GetValueForUICulture(cultureInfo)
public string GetValueForUICulture(
    CultureInfo cultureInfo
)

Parameters

Return value

Type: System.String
A string that contains the value of the resource for the culture.

Exceptions

Exception Condition
ArgumentNullException

cultureInfo is null .

Remarks

This method returns the value for the website's default culture if a value for the requested culture does not exist.

See also

Reference

SPUserResource class

SPUserResource members

Microsoft.SharePoint namespace

UICulture