EntityExtensions.SetAttributeValue<T> Method (Entity, String, Object)

 

Applies To: Dynamics CRM 2015

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

© 2017 Microsoft. All rights reserved. Copyright