Click or drag to resize

DomainParticipantFactoryCreateParticipant Method (Int32, DomainParticipantQos, DomainParticipantListener)

Creates a new DomainParticipant with the desired QoS policies and attaches to it the specified DomainParticipantListener. The specified DomainParticipantListener will be attached with the default StatusMask.

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

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.

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