June 2003
Intermediate to advanced
714 pages
22h 8m
English
PolicyStatement
public sealed class PolicyStatement : System.Security.ISecurityEncodable, System.Security.ISecurityPolicyEncodable { // Public Constructors public PolicyStatement(System.Security.PermissionSetpermSet); public PolicyStatement(System.Security.PermissionSetpermSet, PolicyStatementAttributeattributes); // Public Instance Properties public PolicyStatementAttribute Attributes{set; get; } public string AttributeString{get; } public PermissionSet PermissionSet{set; get; } // Public Instance Methods public PolicyStatement Copy( ); public void FromXml(System.Security.SecurityElementet); // implements System.Security.ISecurityEncodable public void FromXml(System.Security.SecurityElementet, PolicyLevellevel); // implements System.Security.ISecurityPolicyEncodable public SecurityElement ToXml( ); // implements System.Security.ISecurityEncodable public SecurityElement ToXml(PolicyLevellevel); // implements System.Security.ISecurityPolicyEncodable }
The PolicyStatement class defines the set of
permissions that a code group grants to its members, as well as the
attributes of the code group. Of the four concrete
CodeGroup implementations, only the
UnionCodeGroup and
FirstMatchCodeGroup classes require a
PolicyStatement object. The
FileCodeGroup and NetCodeGroup
classes generate their permission sets dynamically, and do not
support attributes. A PolicyStatement is assigned
to a UnionCodeGroup or
FirstMatchCodeGroup object as an argument of the code group’s constructor, ...