/// <summary> /// 解除权限设置 /// </summary> /// <param name="wildcardKey"></param> public static void Unauthorize(string wildcardKey) { AuthManager wMger = new AuthManager(System.Threading.Thread.CurrentPrincipal); wMger.Delete(wildcardKey); }
/// <summary> /// 复制权限 /// </summary> /// <param name="sourceKey">源权限SID</param> /// <param name="destKey">目标权限SID</param> public static bool CopyAuthorize(string sourceKey, string destKey) { AuthManager wMger = new AuthManager(System.Threading.Thread.CurrentPrincipal); return(wMger.Copy(sourceKey, destKey)); }