AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDataEntryTemplate.AddProperty Method

Adds a property to the Data Entry Template.

void AddProperty(
IBaseProperty property
);

#### Parameters

property
  A sub-type of `IBaseProperty` to be added to the Data Entry Template; cannot be `null`.

#### Remarks

The property can be any sub-type of `IBaseProperty`. The added property will not be persisted until `Store` is called.

All properties in the same Data Entry Template must have a unique name. If a property with the same name and a different type is added, a `NameAlreadyInUseException` will be thrown. If a property with the same name and the same type is added, it will be ignored.

The updated properties will affect all associated unpublished content items after the Data Entry Template is stored. The updated properties will not affect published content items unless they are republished.

Note: If an `ISelectionListProperty` is added to the template, and the corresponding selection list is later deleted, the `ISelectionListProperty` will be automatically removed from the template.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | The Data Entry Template has already been removed.
NameAlreadyInUseException | There was already a property with the same name in the Data Entry Template.

#### See Also

IDataEntryTemplate Interface | Plumtree.Remote.PRC.Content.DataEntryTemplate Namespace | RemoveSelectionList