EntityExtensions.SetAttributeValue<T> 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<T>(
    this Entity entity,
    string attributeLogicalName,
    string entityLogicalName,
    object value
)
public:
generic<typename T>
[ExtensionAttribute]
static void SetAttributeValue(
    Entity^ entity,
    String^ attributeLogicalName,
    String^ entityLogicalName,
    Object^ value
)
static member SetAttributeValue<'T> : 
        entity:Entity *
        attributeLogicalName:string *
        entityLogicalName:string *
        value:Object -> unit
<ExtensionAttribute>
Public Shared Sub SetAttributeValue(Of T) (
    entity As Entity,
    attributeLogicalName As String,
    entityLogicalName As String,
    value As Object
)

Parameters

Type Parameters

  • T
    The type, where T is an Entity.

Remarks

Extends the core SetAttributeValue method.

See Also

SetAttributeValue Overload
EntityExtensions Class
Microsoft.Xrm.Client Namespace

Return to top