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

 

Applies To: Dynamics CRM 2015

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 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright