/// <summary>
 /// Constructs this policy information object from an IMS policy instane
 /// </summary>
 public SecurityPolicyInfo(SecurityPolicyInstance o) : this(o.Policy)
 {
     this.Grant = o.GrantType;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PolicyViewModel"/> class
 /// with a specific <see cref="SecurityPolicyInstance"/> instance.
 /// </summary>
 /// <param name="securityPolicyInstance">The security policy instance.</param>
 public PolicyViewModel(SecurityPolicyInstance securityPolicyInstance) : this(securityPolicyInstance.Policy)
 {
     this.Grant = Enum.GetName(typeof(PolicyGrantType), securityPolicyInstance.GrantType);
 }