共用方式為


EntityExtensions.GetAttributeValue Method (Entity, String)

 

Applies To: Dynamics CRM 2013

Retrieves the value of the attribute.

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

Syntax

public static object GetAttributeValue(
    this Entity entity,
    string attributeLogicalName
)
public:
[ExtensionAttribute]
static Object^ GetAttributeValue(
    Entity^ entity,
    String^ attributeLogicalName
)
static member GetAttributeValue : 
        entity:Entity *
        attributeLogicalName:string -> Object
<ExtensionAttribute>
Public Shared Function GetAttributeValue (
    entity As Entity,
    attributeLogicalName As String
) As Object

Parameters

Return Value

Type: System.Object

Type: Object
The value of the attribute.

Remarks

Extends the core GetAttributeValue<T> method.

See Also

GetAttributeValue Overload
EntityExtensions Class
Microsoft.Xrm.Client Namespace

Return to top