Click or drag to resize

SubscriberDeleteDataReader Method

Deletes a DataReader that belongs to the Subscriber.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public ReturnCode DeleteDataReader(
	DataReader datareader
)

Parameters

datareader
Type: OpenDDSharp.DDSDataReader
The DataReader to be deleted.

Return Value

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

If the DataReader does not belong to the Subscriber, the operation returns the error PreconditionNotMet.

The deletion of a DataReader is not allowed if there are any existing ReadCondition or QueryCondition objects that are attached to the DataReader. If the DeleteDataReader operation is called on a DataReader with any of these existing objects attached to it, it will return PreconditionNotMet.

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

See Also