Label Constructors

Definition

Overloads

Label()

Initializes a new instance of the Label class.

Label(LocalizedLabel, LocalizedLabel[])

Initializes a new instance of the Label class.

Label(LocalizedLabel, List<LocalizedLabel>)
Label(String, Int32)

Initializes a new instance of the Label class.

Label()

Initializes a new instance of the Label class.

public:
 Label();
public Label ();
Public Sub New ()

Applies to

Label(LocalizedLabel, LocalizedLabel[])

Initializes a new instance of the Label class.

public:
 Label(Microsoft::Xrm::Sdk::LocalizedLabel ^ userLocalizedLabel, cli::array <Microsoft::Xrm::Sdk::LocalizedLabel ^> ^ labels);
public Label (Microsoft.Xrm.Sdk.LocalizedLabel userLocalizedLabel, Microsoft.Xrm.Sdk.LocalizedLabel[] labels);
new Microsoft.Xrm.Sdk.Label : Microsoft.Xrm.Sdk.LocalizedLabel * Microsoft.Xrm.Sdk.LocalizedLabel[] -> Microsoft.Xrm.Sdk.Label
Public Sub New (userLocalizedLabel As LocalizedLabel, labels As LocalizedLabel())

Parameters

userLocalizedLabel
LocalizedLabel

The label for the language of the current user.

labels
LocalizedLabel[]

An array of localized labels.

Applies to

Label(LocalizedLabel, List<LocalizedLabel>)

public Label (Microsoft.Xrm.Sdk.LocalizedLabel userLocalizedLabel, System.Collections.Generic.List<Microsoft.Xrm.Sdk.LocalizedLabel> labels);
new Microsoft.Xrm.Sdk.Label : Microsoft.Xrm.Sdk.LocalizedLabel * System.Collections.Generic.List<Microsoft.Xrm.Sdk.LocalizedLabel> -> Microsoft.Xrm.Sdk.Label
Public Sub New (userLocalizedLabel As LocalizedLabel, labels As List(Of LocalizedLabel))

Parameters

userLocalizedLabel
LocalizedLabel

Applies to

Label(String, Int32)

Initializes a new instance of the Label class.

public:
 Label(System::String ^ label, int languageCode);
public Label (string label, int languageCode);
new Microsoft.Xrm.Sdk.Label : string * int -> Microsoft.Xrm.Sdk.Label
Public Sub New (label As String, languageCode As Integer)

Parameters

label
String

The string for the user localized label.

languageCode
Int32

The language code for the label.

Remarks

Language codes are four-digit or five-digit locale IDs. Valid locale ID values can be found at Locale ID (LCID) Chart).

Applies to