Click or drag to resize

DomainParticipantDeleteTopic Method

Deletes an existing Topic.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public ReturnCode DeleteTopic(
	Topic topic
)

Parameters

topic
Type: OpenDDSharp.DDSTopic
The Topic to be deleted.

Return Value

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

The deletion of a Topic is not allowed if there are any existing DataReader, DataWriter, ContentFilteredTopic, or MultiTopic objects that are using the Topic.If the DeleteTopic operation is called on a Topic with any of these existing objects attached to it, it will return PreconditionNotMet.

The DeleteTopic(Topic) operation must be called on the same DomainParticipant object used to create the Topic. If DeleteTopic(Topic) is called on a different DomainParticipant, the operation will have no effect and it will return PreconditionNotMet.

See Also