/// <summary>使用指定的 <see cref="T:System.Security.PermissionSet" /> 和特性初始化 <see cref="T:System.Security.Policy.PolicyStatement" /> 类的新实例。</summary> /// <param name="permSet">用于初始化新实例的 <see cref="T:System.Security.PermissionSet" />。</param> /// <param name="attributes"> /// <see cref="T:System.Security.Policy.PolicyStatementAttribute" /> 值的按位组合。</param> public PolicyStatement(PermissionSet permSet, PolicyStatementAttribute attributes) { this.m_permSet = permSet != null?permSet.Copy() : new PermissionSet(false); if (!PolicyStatement.ValidProperties(attributes)) { return; } this.m_attributes = attributes; }
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Policy.PolicyStatement" /> class with the specified <see cref="T:System.Security.PermissionSet" /> and attributes.</summary> /// <param name="permSet">The <see cref="T:System.Security.PermissionSet" /> with which to initialize the new instance. </param> /// <param name="attributes">A bitwise combination of the <see cref="T:System.Security.Policy.PolicyStatementAttribute" /> values. </param> // Token: 0x060029F8 RID: 10744 RVA: 0x0009BFC8 File Offset: 0x0009A1C8 public PolicyStatement(PermissionSet permSet, PolicyStatementAttribute attributes) { if (permSet == null) { this.m_permSet = new PermissionSet(false); } else { this.m_permSet = permSet.Copy(); } if (PolicyStatement.ValidProperties(attributes)) { this.m_attributes = attributes; } }