Share via


Term.GetAllLabels method

Gets all of the Label objects for the provided lcid parameter.

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

Syntax

'Declaration
Public Function GetAllLabels ( _
    lcid As Integer _
) As LabelCollection
'Usage
Dim instance As Term
Dim lcid As Integer
Dim returnValue As LabelCollection

returnValue = instance.GetAllLabels(lcid)
public LabelCollection GetAllLabels(
    int lcid
)

Parameters

  • lcid
    Type: System.Int32

    The LCID that the Label objects are associated with

Return value

Type: Microsoft.SharePoint.Client.Taxonomy.LabelCollection
The LabelCollection of this Term object for the specified lcid parameter.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The lcid is not valid.

Remarks

If Label objects exist for the specified lcid, the default Label is added first to the LabelCollection object, followed by the non-default Labels.

See also

Reference

Term class

Term members

Microsoft.SharePoint.Client.Taxonomy namespace