Click or drag to resize

DomainParticipantDeletePublisher Method

Deletes an existing Publisher.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public ReturnCode DeletePublisher(
	Publisher publisher
)

Parameters

publisher
Type: OpenDDSharp.DDSPublisher
The Publisher to be deleted.

Return Value

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

A Publisher cannot be deleted if it has any attached DataWriter objects. If DeletePublisher(Publisher) is called on a Publisher with existing DataWriter object, it will return PreconditionNotMet.

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

See Also