Initializes a new instance of the PrivacyRule class.
Namespace: S22.Xmpp.ImAssembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public JidPrivacyRule( Jid jid, bool allow, uint order, PrivacyGranularity granularity = ) |
Parameters
- jid
- Type: S22.Xmpp..::..Jid
The JID the privacy rule applies to.
- allow
- Type: System..::..Boolean
True to allow entities affected by this rule; Otherwise false.
- order
- Type: System..::..UInt32
The order of the privacy rule.
- granularity (Optional)
- Type: S22.Xmpp.Im..::..PrivacyGranularity
Specifies which kinds of stanzas should be allowed or blocked, respectively.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The jid parameter is null. |