EntityExtensions.SetAttributeValue Method (Entity, String, 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(
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
entity
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The entity instance.
attributeLogicalName
Type: System.StringType: String. The logical name of the attribute.
entityLogicalName
Type: System.StringType: String. The logical name of the entity.
value
Type: System.ObjectType: Object. The attribute value.
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