2 // System.Security.Policy.PolicyStatement
\r
5 // Dan Lewis (dihlewis@yahoo.co.uk)
\r
10 namespace System.Security.Policy {
\r
13 public sealed class PolicyStatement : ISecurityEncodable, ISecurityPolicyEncodable {
\r
14 public PolicyStatement (PermissionSet perms) :
\r
15 this (perms, PolicyStatementAttribute.Nothing)
\r
19 public PolicyStatement (PermissionSet perms, PolicyStatementAttribute attrs) {
\r
24 public PermissionSet PermissionSet {
\r
25 get { return perms; }
\r
26 set { perms = value; }
\r
29 public PolicyStatementAttribute Attributes {
\r
30 get { return attrs; }
\r
31 set { attrs = value; }
\r
34 public string AttributeString {
\r
35 get { return attrs.ToString ("F"); }
\r
38 public PolicyStatement Copy ()
\r
40 return new PolicyStatement (perms, attrs);
\r
43 // ISecurityEncodable
\r
46 public void FromXml (SecurityElement e) {
\r
50 public void FromXml (SecurityElement e, PolicyLevel level) {
\r
54 public SecurityElement ToXml () {
\r
59 public SecurityElement ToXml (PolicyLevel level) {
\r
63 private PermissionSet perms;
\r
64 private PolicyStatementAttribute attrs;
\r