GetAccessControl() public static method

public static GetAccessControl ( this key ) : System.Security.AccessControl.RegistrySecurity
key this
return System.Security.AccessControl.RegistrySecurity
示例#1
0
 public void GetAccessControl_NullArgument_Throws()
 {
     Assert.Throws <ArgumentNullException>(() => RegistryAclExtensions.GetAccessControl(null));
     Assert.Throws <ArgumentNullException>(() => RegistryAclExtensions.GetAccessControl(null, System.Security.AccessControl.AccessControlSections.All));
 }
 public void GetAccessControl_NullArgument_Throws()
 {
     Assert.Throws <NullReferenceException>(() => RegistryAclExtensions.GetAccessControl(null));
 }