Initializes a new instance of the PrivacyRule class.

Namespace: S22.Xmpp.Im
Assembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public SubscriptionPrivacyRule(
	SubscriptionState state,
	bool allow,
	uint order,
	PrivacyGranularity granularity = 
)

Parameters

state
Type: S22.Xmpp.Im..::..SubscriptionState
The subscription state the privacy rule applies to.
allow
Type: System..::..Boolean
True to block 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 are to be blocked.

See Also