Plumtree EDK (Enterprise Web Development Kit) 5.4.0

IContentItem.GetProperty Method 

Returns an IBaseProperty of the specified name if it exists on the content item.

IBaseProperty GetProperty(
   string name
);

Parameters

name
The name of the property to retrieve; cannot be null, empty, or longer than 255 characters. The string used for the name will be trimmed of leading and trailing whitespace and is case-insensitive during comparison.

Return Value

An IBaseProperty matching the specified name on the content item or null if no such property exists.

Remarks

The returned property is a sub-type of IBaseProperty, that is, its actual type will be one of the derived property types, such as ITextLineProperty, IDoubleProperty, etc.

The parameter name has to be the full name of the property, does not support wildcards, will be trimmed of leading and trailing whitespace and is case-insensitive for comparison.

Exceptions

Exception Type Condition
InvalidOperationException The content item has already been removed.

See Also

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