AquaLogic Interaction Development Kit (IDK) 6.0.0

IContentItem.HasPropertyValue Method 

Returns true if the value of the specified property has been set for this content item, otherwise false.

bool HasPropertyValue(
   IBaseProperty property
);

Parameters

property
The property to be checked for presence of value; cannot be null.

Return Value

true if the value of the specified property has been set for this content item, otherwise false.

Remarks

An InvalidOperationException will be thrown if getPropertyValue is called on a property that does not have a value set.

See the code sample in IContentItem for an example of how to use this method to test for presence of value for different properties.

Exceptions

Exception Type Condition
InvalidOperationException The item has already been removed.
ArgumentException The content item does not contain the specified property.

See Also

IContentItem Interface | Plumtree.Remote.PRC.Content.Item Namespace