Label Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Contains a collection of translations for a label.

For the Web API the corresponding type is Label ComplexType.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Sdk.Label

Syntax

[DataContractAttribute(Name = "Label", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class Label : IExtensibleDataObject
<DataContractAttribute(Name := "Label", Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts")>
Public NotInheritable Class Label
    Implements IExtensibleDataObject

Constructors

Name Description
System_CAPS_pubmethod Label()

Initializes a new instance of the Label class.

System_CAPS_pubmethod Label(LocalizedLabel, LocalizedLabel[])

Initializes a new instance of the Label class.

System_CAPS_pubmethod Label(String, Int32)

Initializes a new instance of the Label class.

Properties

Name Description
System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data.

System_CAPS_pubproperty LocalizedLabels

Gets the collection of localized labels.

System_CAPS_pubproperty UserLocalizedLabel

Gets or set the label for the language of the current user.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

You can only set a localized label for a language that is installed on the server.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Xrm.Sdk Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright