示例#1
0
 // Token: 0x06002A96 RID: 10902 RVA: 0x0009E2E4 File Offset: 0x0009C4E4
 private void ParseZone()
 {
     lock (this)
     {
         if (this.m_element != null)
         {
             string text = this.m_element.Attribute("Zone");
             this.m_zone = SecurityZone.NoZone;
             if (text == null)
             {
                 throw new ArgumentException(Environment.GetResourceString("Argument_ZoneCannotBeNull"));
             }
             this.m_zone = (SecurityZone)Enum.Parse(typeof(SecurityZone), text);
             ZoneMembershipCondition.VerifyZone(this.m_zone);
             this.m_element = null;
         }
     }
 }
示例#2
0
 /// <summary>用确定成员身份的区域初始化 <see cref="T:System.Security.Policy.ZoneMembershipCondition" /> 类的新实例。</summary>
 /// <param name="zone">要对其进行测试的 <see cref="T:System.Security.SecurityZone" />。</param>
 /// <exception cref="T:System.ArgumentException">
 /// <paramref name="zone" /> 参数不是有效的 <see cref="T:System.Security.SecurityZone" />。</exception>
 public ZoneMembershipCondition(SecurityZone zone)
 {
     ZoneMembershipCondition.VerifyZone(zone);
     this.SecurityZone = zone;
 }