public ReturnCode DeleteDataWriter( DataWriter datawriter )
Public Function DeleteDataWriter ( datawriter As DataWriter ) As ReturnCode
public: ReturnCode DeleteDataWriter( DataWriter^ datawriter )
member DeleteDataWriter : datawriter : DataWriter -> ReturnCode
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.