Click or drag to resize

SubscriberDeleteContainedEntities Method

This operation deletes all the entities that were created by means of the "create" operations on the Subscriber. That is, it deletes all contained DataReader objects. This pattern is applied recursively. In this manner the operation DeleteContainedEntities on the Subscriber will end up deleting all the entities recursively contained in the Subscriber, that is also the QueryCondition and ReadCondition objects belonging to the contained DataReaders.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public ReturnCode DeleteContainedEntities()

Return Value

Type: ReturnCode
The ReturnCode that indicates the operation result.
Remarks

The operation will return PreconditionNotMet if any of the contained entities is in a state where it cannot be deleted.

Once DeleteContainedEntities returns successfully, the application may delete the Subscriber knowing that it has no contained DataReader objects.

See Also