Partilhar via


SPUserResource.GetValueForUICulture Method

Returns the value of the resource for the specified culture.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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