Share via


Label.Language property

Indicates the locale of the current Label object.

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

Syntax

'Declaration
Public Property Language As Integer
    Get
    Set
'Usage
Dim instance As Label
Dim value As Integer

value = instance.Language

instance.Language = value
public int Language { get; set; }

Property value

Type: System.Int32
Returns Int32.

Exceptions

Exception Condition
UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

TermStoreOperationException

The language of a default Label cannot be changed.

ArgumentOutOfRangeException

The language is not a valid language or is not one of the working languages for the current term store.

Remarks

The current user must have TaxonomyRights.EditTerm permission in order to set this property. Call the CommitAll() method to save this change to the database.

See also

Reference

Label class

Label members

Microsoft.SharePoint.Client.Taxonomy namespace