public void Remove(TrustLevel trustLevel)
 {
     base.BaseRemove(this.GetElementKey(trustLevel));
 }
 public void Set(int index, TrustLevel trustLevel)
 {
     this.BaseAdd(index, trustLevel);
 }
Пример #3
0
		public void Set (int index, TrustLevel trustLevel)
		{
			if (BaseGet (index) != null)
				BaseRemoveAt (index);
			BaseAdd (index, trustLevel);
		}
 public void Add(TrustLevel trustLevel)
 {
     this.BaseAdd(trustLevel);
 }
Пример #5
0
		public void Add (TrustLevel trustLevel)
		{
			BaseAdd (trustLevel);
		}
Пример #6
0
		public void Remove (TrustLevel trustLevel)
		{
			BaseRemove (trustLevel.Name);
		}
 public void Remove(TrustLevel trustLevel) {
     BaseRemove(GetElementKey(trustLevel));
 }
Пример #8
0
        private static string GetPolicyFilenameExpanded(TrustLevel trustLevel)
        {
            bool isRelative = true;
            if (trustLevel.PolicyFile.Length > 1)
            {
                char ch = trustLevel.PolicyFile[1];
                char ch2 = trustLevel.PolicyFile[0];
                if (ch == ':')
                {
                    isRelative = false;
                }
                else if ((ch2 == '\\') && (ch == '\\'))
                {
                    isRelative = false;
                }
            }

            if (isRelative)
            {
                string configurationElementFileSource = trustLevel.ElementInformation.Properties["policyFile"].Source;
                string path = configurationElementFileSource.Substring(0, configurationElementFileSource.LastIndexOf('\\') + 1);
                return path + trustLevel.PolicyFile;
            }
            return trustLevel.PolicyFile;
        }
 public void Set(int index, TrustLevel trustLevel)
 {
 }
 public void Remove(TrustLevel trustLevel)
 {
 }
 public void Add(TrustLevel trustLevel)
 {
 }
Пример #12
0
 public void Remove(TrustLevel trustLevel)
 {
     BaseRemove(trustLevel.Name);
 }
Пример #13
0
 public void Add(TrustLevel trustLevel)
 {
     BaseAdd(trustLevel);
 }