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 GroupPrivacyRule(
	string group,
	bool allow,
	uint order,
	PrivacyGranularity granularity = 
)

Parameters

group
Type: System..::..String
The group 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

ExceptionCondition
System..::..ArgumentNullExceptionThe group parameter is null.

See Also