Entity.SetAttributeValue Method (String, Object)
Applies To: Dynamics CRM 2015
Sets the value of an attribute.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
protected virtual void SetAttributeValue(
string attributeLogicalName,
object value
)
protected:
virtual void SetAttributeValue(
String^ attributeLogicalName,
Object^ value
)
abstract SetAttributeValue :
attributeLogicalName:string *
value:Object -> unit
override SetAttributeValue :
attributeLogicalName:string *
value:Object -> unit
Protected Overridable Sub SetAttributeValue (
attributeLogicalName As String,
value As Object
)
Parameters
attributeLogicalName
Type: System.StringType: String. The logical name of the attribute.
value
Type: System.ObjectType: Object. The value to set.
Examples
record.SetAttributeValue("new_recipename", "Chocolate Tart");
See Also
Entity Class
Microsoft.Xrm.Sdk Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright