MSDN Library

Class IdentityPolicyRules

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.

Namespace

System.Net.Security

Assembly

System.dll

Inheritance

Object
IdentityPolicyRules

Remarks

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.

Constructors

Methods

Properties

Count

Gets the number of identity policy rules in the collection.

Type: Int32

Access: Read-only

Requirements

.NET Framework

Supported in: .NET Framework 4.5, .NET Framework 4.0, .NET Framework 3.5, .NET Framework 3.0, .NET Framework 2.0

.NET Standard

Not applicable.

Portable Class Library

Not applicable.

See Also

IdentityPolicyRules()

Initializes a new instance of the IdentityPolicyRules class.

public IdentityPolicyRules();

AddRule(IdentityPolicyRule rule)

Adds a new identity policy rule to the collection.

public void AddRule(IdentityPolicyRule rule);
Parameters
rule
The IdentityPolicyRule to add to the collection.

RemoveRule(IdentityPolicyRule rule)

Removes an existing identity policy rule from the collection.

public void RemoveRule(IdentityPolicyRule rule);
Parameters
rule
The IdentityPolicyRule to remove from the collection.

GetRules()

Retrieves all identity policy rules currently in the collection.

public IdentityPolicyRule[] GetRules();
Returns

An array of IdentityPolicyRule objects.

Clear()

Removes all identity policy rules from the collection.

public void Clear();

Count

Gets the number of identity policy rules in the collection.

public int Count { get; }
Property Value

Type: Int32

The number of rules in the collection.