|
DomainParticipantCreateMultiTopic Method
|
Creates a
MultiTopic. A
MultiTopic can be used to subscribe to multiple topics and combine/filter the received data into a resulting type.
In particular,
MultiTopic provides a content-based subscription mechanism.
Namespace:
OpenDDSharp.DDS
Assembly:
OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax public MultiTopic CreateMultiTopic(
string name,
string typeName,
string subscriptionExpression,
params string[] expressionParameters
)
Public Function CreateMultiTopic (
name As String,
typeName As String,
subscriptionExpression As String,
ParamArray expressionParameters As String()
) As MultiTopic
public:
MultiTopic^ CreateMultiTopic(
String^ name,
String^ typeName,
String^ subscriptionExpression,
... array<String^>^ expressionParameters
)
member CreateMultiTopic :
name : string *
typeName : string *
subscriptionExpression : string *
expressionParameters : string[] -> MultiTopic
Parameters
- name
- Type: SystemString
The name of the MultiTopic. - typeName
- Type: SystemString
The type name used for the MultiTopic. - subscriptionExpression
- Type: SystemString
The subscription expression used for the MultiTopic. - expressionParameters
- Type: SystemString
The collection of parameters to be used in the subscription expression.
Return Value
Type:
MultiTopicThe newly created
MultiTopic on success, otherwise
.
Remarks The resulting type is specified by the typeName argument. Prior to creating a MultiTopic the type must have been registered.
This is done using the RegisterType operation on a derived class of the TypeSupport interface.
The list of topics and the logic used to combine filter and re-arrange the information from each Topic are specified using the
subscriptionExpression and expressionParameters arguments.
See Also