IdentityPolicyElement Class
Represents an element that specifies the security identity of a user. This class cannot be inherited.
Syntax
public sealed class IdentityPolicyElement
Inheritance Hierarchy
System.Object
System.Configuration.ConfigurationElement
System.Net.Security.IdentityPolicyElement
Remarks
The IdentityPolicyElement class is used in the .NET Framework's configuration system to define security policies related to user identities. It allows administrators to configure how the system identifies and authenticates users for network operations, particularly in scenarios involving secure communication protocols like SSL/TLS.
This element typically resides within the <identity> section of a configuration file and can specify attributes such as the identity type, username, and password for authentication.
Members
Properties
| Name | Description |
|---|---|
IdentityType |
Gets or sets the type of identity. |
Password |
Gets or sets the password for the identity. |
UserName |
Gets or sets the user name for the identity. |
Methods
| Name | Description |
|---|---|
DeserializeElement(XmlReader reader, bool serializeCollectionKey) |
Deserializes an XML string to a IdentityPolicyElement instance. |
SerializeElement(XmlWriter writer, bool serializeCollectionKey) |
Serializes a IdentityPolicyElement instance to XML. |
Requirements
| Platform | Minimum supported version |
|---|---|
| .NET Framework Client Profile | Supports in: 4.5, 4.0, 3.5, 3.0, 2.0 Server in: 4.5, 4.0, 3.5, 3.0 |
| .NET Framework | Supports in: 4.5, 4.0, 3.5, 3.0, 2.0 Server in: 4.5, 4.0, 3.5, 3.0 |
| .NET Standard | N/A |
| .NET Core | N/A |