PolicyStatement Class

Definition

Represents the statement of a CodeGroup describing the permissions and other information that apply to code with a particular set of evidence. This class cannot be inherited.

public ref class PolicyStatement sealed : System::Security::ISecurityEncodable, System::Security::ISecurityPolicyEncodable
public sealed class PolicyStatement : System.Security.ISecurityEncodable, System.Security.ISecurityPolicyEncodable
[System.Serializable]
public sealed class PolicyStatement : System.Security.ISecurityEncodable, System.Security.ISecurityPolicyEncodable
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class PolicyStatement : System.Security.ISecurityEncodable, System.Security.ISecurityPolicyEncodable
type PolicyStatement = class
    interface ISecurityEncodable
    interface ISecurityPolicyEncodable
[<System.Serializable>]
type PolicyStatement = class
    interface ISecurityEncodable
    interface ISecurityPolicyEncodable
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type PolicyStatement = class
    interface ISecurityEncodable
    interface ISecurityPolicyEncodable
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type PolicyStatement = class
    interface ISecurityPolicyEncodable
    interface ISecurityEncodable
Public NotInheritable Class PolicyStatement
Implements ISecurityEncodable, ISecurityPolicyEncodable
Inheritance
PolicyStatement
Attributes
Implements

Remarks

A PolicyStatement consists of a set of granted permissions, and possible special attributes for the code group.

Policy statements are typically used as the return value of a Resolve operation on a PolicyLevel.

Constructors

PolicyStatement(PermissionSet, PolicyStatementAttribute)
Obsolete.

Initializes a new instance of the PolicyStatement class with the specified PermissionSet and attributes.

PolicyStatement(PermissionSet)
Obsolete.

Initializes a new instance of the PolicyStatement class with the specified PermissionSet.

Properties

Attributes

Gets or sets the attributes of the policy statement.

AttributeString

Gets a string representation of the attributes of the policy statement.

PermissionSet
Obsolete.

Gets or sets the PermissionSet of the policy statement.

Methods

Copy()

Creates an equivalent copy of the current policy statement.

Equals(Object)

Determines whether the specified PolicyStatement object is equal to the current PolicyStatement.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FromXml(SecurityElement, PolicyLevel)

Reconstructs a security object with a given state from an XML encoding.

FromXml(SecurityElement)

Reconstructs a security object with a given state from an XML encoding.

GetHashCode()

Gets a hash code for the PolicyStatement object that is suitable for use in hashing algorithms and data structures such as a hash table.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
ToXml()

Creates an XML encoding of the security object and its current state.

ToXml(PolicyLevel)

Creates an XML encoding of the security object and its current state.

Applies to