Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Entity.SetAttributeValue(String, Object) Method

Definition

Namespace:
Microsoft.Xrm.Sdk
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Sets the value of an attribute.

protected:
 virtual void SetAttributeValue(System::String ^ attributeLogicalName, System::Object ^ value);
protected virtual void SetAttributeValue(string attributeLogicalName, object value);
abstract member SetAttributeValue : string * obj -> unit
override this.SetAttributeValue : string * obj -> unit
Protected Overridable Sub SetAttributeValue (attributeLogicalName As String, value As Object)

Parameters

attributeLogicalName
String

The logical name of the attribute.

value
Object

The value to set.

Examples

record.SetAttributeValue("new_recipename", "Chocolate Tart");

Applies to