Method SetProperty
SetProperty(string, Property)
Set the property with the given key
with the given value
.
Declaration
public Property SetProperty(string key, Property value)
Parameters
Type | Name | Description |
---|---|---|
string | key | Identifier of the property to get the value of. |
Property | value | The value to assign to the property. |
Returns
Type | Description |
---|---|
Property | The new value of the property. |
Exceptions
Type | Condition |
---|---|
ArgumentException | If the |
NullReferenceException | If this item has been discarded. |
PropertyNotFoundException | If there is no property with the given |
PropertyInvalidCastException | If the given |