ItemsetProperty Method (String, String) |
Set the property with the specified name. If property doesn't exist on the item, create it
first and then set.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 14.0.9.36244
Syntaxpublic void setProperty(
string propertyName,
string propertyValue
)
Public Sub setProperty (
propertyName As String,
propertyValue As String
)
public void setProperty(
String propertyName,
String propertyValue
)
public function setProperty(
propertyName : String,
propertyValue : String
)
Parameters
- propertyName
- Type: SystemString
Property name. - propertyValue
- Type: SystemString
Value to be set on the property.
ExceptionsException | Condition |
---|
Exception | The instance doesn't represent a single item. |
ArgumentException | The this.node is read-only. |
Remarks
If property has attribute is_null set to 1 and specified property value
is not an empty string, the attribute is removed from the property. If specified property
value is null, then attribute is_null='1' is set on the property and it's
value is set to empty string (i.e. after setting null value the property tag will
look like: <prop is_null='1' />).
See Also