Represents a collection of rules for identity policy enforcement. This class is used to define and manage security policies that govern the identity verification and trust decisions within a networked application.
System.dll
Object
IdentityPolicyRules
The IdentityPolicyRules class allows developers to specify how an application should handle security policies related to network identities. This can include rules for certificate validation, trust anchors, and other identity-related security checks. By configuring these rules, applications can enhance their security posture and ensure that communication with network resources is established with trusted and verified identities.
Initializes a new instance of the IdentityPolicyRules class.
Adds a new identity policy rule to the collection.
Removes an existing identity policy rule from the collection.
Retrieves all identity policy rules currently in the collection.
Returns: An array of IdentityPolicyRule objects.
Removes all identity policy rules from the collection.
Gets the number of identity policy rules in the collection.
Type: Int32
Access: Read-only
Supported in: .NET Framework 4.5, .NET Framework 4.0, .NET Framework 3.5, .NET Framework 3.0, .NET Framework 2.0
Not applicable.
Not applicable.
Initializes a new instance of the IdentityPolicyRules class.
public IdentityPolicyRules();
Adds a new identity policy rule to the collection.
public void AddRule(IdentityPolicyRule rule);
IdentityPolicyRule to add to the collection.Removes an existing identity policy rule from the collection.
public void RemoveRule(IdentityPolicyRule rule);
IdentityPolicyRule to remove from the collection.Retrieves all identity policy rules currently in the collection.
public IdentityPolicyRule[] GetRules();
An array of IdentityPolicyRule objects.
Removes all identity policy rules from the collection.
public void Clear();
Gets the number of identity policy rules in the collection.
public int Count { get; }
Type: Int32
The number of rules in the collection.