Partager via


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

 

Applies To: Dynamics CRM 2015

Retrieves the value of an attribute.

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

Syntax

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

Parameters

Return Value

Type: T

Type: Object
The value of the attribute.

Type Parameters

  • T
    The type, where T is an Entity.

Remarks

Extends the core GetAttributeValue<T> method.

See Also

GetAttributeValue Overload
EntityExtensions Class
Microsoft.Xrm.Client Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright