Click or drag to resize

PublisherDeleteDataWriter Method

Deletes a DataWriter that belongs to the Publisher.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version:
public ReturnCode DeleteDataWriter(
	DataWriter datawriter


Type: OpenDDSharp.DDSDataWriter
The DataWriter to be deleted.

Return Value

Type: ReturnCode
The ReturnCode that indicates the operation result.

The DeleteDataWriter operation must be called on the same Publisher object used to create the DataWriter. If DeleteDataWriter operation is called on a different Publisher, the operation will have no effect and it will return PreconditionNotMet.

The deletion of the DataWriter will automatically unregister all instances. Depending on the settings of the WriterDataLifecycleQosPolicy, the deletion of the DataWriter may also dispose all instances.

See Also