Compartir a través de


EntityExtensions.GetEntityReferenceValue<T> Method (Entity, String)

 

Applies To: Dynamics CRM 2013

Retrieves attribute values for EntityReference attributes.

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

Syntax

public static T GetEntityReferenceValue<T>(
    this Entity entity,
    string attributeLogicalName
)
public:
generic<typename T>
[ExtensionAttribute]
static T GetEntityReferenceValue(
    Entity^ entity,
    String^ attributeLogicalName
)
static member GetEntityReferenceValue<'T> : 
        entity:Entity *
        attributeLogicalName:string -> 'T
<ExtensionAttribute>
Public Shared Function GetEntityReferenceValue(Of T) (
    entity As Entity,
    attributeLogicalName As String
) As T

Parameters

Return Value

Type: T

Type: T
The entity that contains the attribute values.

Type Parameters

  • T
    The type, where T is an Entity.

See Also

EntityReference
EntityExtensions Class
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2013

Return to top