Condividi tramite


Metodo Entity.GetAttributeValue

Si applica a: CRM 2015 on-prem, CRM Online

Gets the value of the attribute.

Spazio dei nomi: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Sintassi

'Dichiarazione
Public Overridable Function GetAttributeValue(Of T) ( _
    attributeLogicalName As String _
) As T
public virtual T GetAttributeValue<T> (
    string attributeLogicalName
)

GenericParameters

  • T
    Type: Tipo. The type of the attribute.

Parametri

  • attributeLogicalName
    Type: Stringa. The logical name of the attribute.

Valore restituito

Type: Tipo
The value of the attribute.

Esempio

GetAttributeValue<EntityReference>("regardingobjectid")

Thread Safety

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è garantito che i membri di istanza siano thread-safe.

Piattaforme

Piattaforme di sviluppo

Windows Vista, Windows Server 2003 e

Piattaforme di destinazione

Windows Vista,Windows XP

Change History

Vedere anche

Riferimento

Classe Entity
Membri Entity
Spazio dei nomi Microsoft.Xrm.Sdk

Altre risorse

Types in the Microsoft Dynamics CRM SDK

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.