Compartir a través de


Método Entity.GetAttributeValue

Se aplica a: CRM 2015 on-prem, CRM Online

Gets the value of the attribute.

Espacio de nombres: Microsoft.Xrm.Sdk
Ensamblado: Microsoft.Xrm.Sdk (en Microsoft.Xrm.Sdk.dll)

Sintaxis

'Declaración
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.

Parámetros

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

Valor de retorno

Type: Tipo
The value of the attribute.

Ejemplo

GetAttributeValue<EntityReference>("regardingobjectid")

Seguridad de hilo

Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para el hilo. No se garantiza que los miembros de instancia sean seguros para el hilo.

Plataformas

Plataformas de desarrollo

Windows Vista, Windows Server 2003 y

Plataformas de destino

Windows Vista,Windows XP

Change History

Vea también

Referencia

Clase de Entity
Miembros de Entity
Espacio de nombres de Microsoft.Xrm.Sdk

Otros recursos

Types in the Microsoft Dynamics CRM SDK

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