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(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

Type: LocalizedLabel. The label for the language of the current user.

labels
LocalizedLabel[]

Type: LocalizedLabel[]. An array of localized labels.

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

Type: String. The string for the user localized label.

languageCode
Int32

Type: 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