ISession.ValidateTopic Method
This method checks a topic string against topic encoding rules for the appliance. This
method is intended for use before sending a message to a topic.
This method should not be used with Subscribe methods. Subscribe methods
perform its own topic validation, which includes accepting wildcards.
For performance reasons
Send(IMessage) and
Send(IMessage[], Int32, Int32, Int32) does not validate topics, and this method
is provided as a convenience to the developer to ensure a topic is valid
before sending a message that could be rejected by the appliance. It is
expected then that the same topic will be used for sending many messages.
FatalErrorException |
Thrown when an unrecoverable error occurs.
|
ArgumentNullException |
Thrown if any of the required parameters are null.
|