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: 11.0.0.6296

Syntax

C#
public void setProperty(
	string propertyName,
	string propertyValue
)
Visual Basic (Declaration)
Public Sub setProperty ( _
	propertyName As String, _
	propertyValue As String _
)
J#
public void setProperty(
	String propertyName,
	String propertyValue
)
JScript
public function setProperty(
	propertyName : String, 
	propertyValue : String
)

Parameters

propertyName
Type: System..::.String
Property name.
propertyValue
Type: System..::.String
Value to be set on the property.

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' />).

Exceptions

ExceptionCondition
System..::.ExceptionThe instance doesn't represent a single item.
System..::.ArgumentExceptionThe this.node is read-only.

See Also