AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDataEntryTemplate.DetachPresentationTemplate Method

Detaches the `IPresentationTemplate` from this Data Entry Template.

void DetachPresentationTemplate();

#### Remarks

The detachment will not be persisted until `Store` is called. This method can only be called on a persisted Data Entry Template, otherwise an `InvalidOperationException` will be thrown.

Detaching the Presentation Template twice will not result in an exception.

After a Presentation Template is detached from the Data Entry Template and persisted, it can be attached to a different Data Entry Template.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | The Data Entry Template has not been persisted or has already been removed.

#### See Also

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