Click or drag to resize

DomainParticipantFactoryCreateParticipant Method (Int32, DomainParticipantQos, DomainParticipantListener, StatusMask)

Creates a new DomainParticipant with the desired QoS policies and attaches to it the specified DomainParticipantListener.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public DomainParticipant CreateParticipant(
	int domainId,
	DomainParticipantQos qos,
	DomainParticipantListener listener,
	StatusMask statusMask
)

Parameters

domainId
Type: SystemInt32
Domain ID that the application intends to join.
qos
Type: OpenDDSharp.DDSDomainParticipantQos
The DomainParticipantQos policies to be used for creating the new DomainParticipant.
listener
Type: OpenDDSharp.OpenDDS.DCPSDomainParticipantListener
The DomainParticipantListener to be attached to the newly created DomainParticipant.
statusMask
Type: OpenDDSharp.DDSStatusMask
The StatusMask of which status changes the listener should be notified.

Return Value

Type: DomainParticipant
The newly created DomainParticipant on success, otherwise .
Remarks
If the specified QoS policies are not consistent, the operation will fail and no DomainParticipant will be created.
See Also