ItemgetProperty Method (String, String) |
Gets value of the property with the specified name.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 14.0.9.36244
Syntaxpublic string getProperty(
string propertyName,
string defaultValue
)
Public Function getProperty (
propertyName As String,
defaultValue As String
) As String
public String getProperty(
String propertyName,
String defaultValue
)
public function getProperty(
propertyName : String,
defaultValue : String
) : String
Parameters
- propertyName
- Type: SystemString
Property name. - defaultValue
- Type: SystemString
Default value of the property.
Return Value
Type:
String
If the property is an item-property, ID of the item-property is returned.
If the property doesn't exist or it's an item-property without ID, the default value
is returned; otherwise the method returns value of the specified property. Note,
that if the property has attribute
is_null set to
1 and the property
value is empty string (e.g. <p1 is_null='1'/> or <p1 is_null='1'></p1>) then the
property value is interpreted as
null.
ExceptionsException | Condition |
---|
Exception | The instance doesn't represent a single item. |
See Also