共用方式為


EntityExtensions.SetAttributeValue Method (Entity, String, String, Object)

 

Applies To: Dynamics CRM 2013

Modifies the value of an attribute.

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

Syntax

public static void SetAttributeValue(
    this Entity entity,
    string attributeLogicalName,
    string entityLogicalName,
    object value
)
public:
[ExtensionAttribute]
static void SetAttributeValue(
    Entity^ entity,
    String^ attributeLogicalName,
    String^ entityLogicalName,
    Object^ value
)
static member SetAttributeValue : 
        entity:Entity *
        attributeLogicalName:string *
        entityLogicalName:string *
        value:Object -> unit
<ExtensionAttribute>
Public Shared Sub SetAttributeValue (
    entity As Entity,
    attributeLogicalName As String,
    entityLogicalName As String,
    value As Object
)

Parameters

Remarks

Extends the core SetAttributeValue method.

See Also

SetAttributeValue Overload
EntityExtensions Class
Microsoft.Xrm.Client Namespace

Return to top