static private EncodeLevel ( |
||
level | ||
Результат | void |
public static void SavePolicyLevel(PolicyLevel level) { if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit")); } PolicyManager.EncodeLevel(level); }
private void EncodeLevel(string label) { for (int i = 0; i < this.PolicyLevels.Count; i++) { PolicyLevel policyLevel = (PolicyLevel)this.PolicyLevels[i]; if (policyLevel.Label.Equals(label)) { PolicyManager.EncodeLevel(policyLevel); return; } } }
private void EncodeLevel(string label) { for (int index = 0; index < this.PolicyLevels.Count; ++index) { PolicyLevel level = (PolicyLevel)this.PolicyLevels[index]; if (level.Label.Equals(label)) { PolicyManager.EncodeLevel(level); break; } } }
static public void SavePolicyLevel(PolicyLevel level) { PolicyManager.EncodeLevel(level); }