Plumtree EDK (Enterprise Web Development Kit) 5.4.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 code sample in IContentItem class documentation on 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