C++ C#

SetAttributeByName(String^, Object^) Method

Class: Item

Sets the value of an Attribute

public void SetAttributeByName(String^ name, Object^ value)

Parameters

Type Name Description
String^ name Name of the AttributeType
Object^ value The Value

Returns: void

Errors

Errors cause a Platform::Exception to be thrown with the following HResult and Message

HResult Message
4002 AttributeType does not exist
1201 Value is of the wrong type for this AttributeType