C++ C#

SetAttribute(string, object) Method

Class: Item

Sets the value of an Attribute

public void SetAttribute(string name, object value)

Parameters

Type Name Description
string name Name of the AttributeType
object value The Value

Returns: void

Exceptions

Type Description
AttributeTypeDoesNotExist AttributeType does not exist
ValueInvalidForAttribute Value is of the wrong type for this AttributeType