SecureTopic Method (PubSubConnection)
- Last UpdatedApr 08, 2026
- 1 minute read
Restricts publishing on this topic and its children
to the specified security group.
This call is useful when security is needed around publishing to a specific topic tree. With this call, publishers can be restricted to only those that belong to the named Windows security group. Applications running as users that are not members of this group with have their publications rejected when they publish on the secured topic.
The user that the application is running as will need to be a member of the group in order for this call to be successful.
PubSubConnection PS = new PubSubConnection();
PS.SecureTopic("mySystem.MyTopic", "MyGroup");
PubSubConnection PS = new PubSubConnection();
PS.SecureTopic("mySystem.MyTopic", "MyGroup");