共用方式為


Entity.SetAttributeValue(String, Object) Method

Definition

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