标签:style blog http color ar sp div log bs
public bool IsAdministrator() { WindowsIdentity current = WindowsIdentity.GetCurrent(); WindowsPrincipal windowsPrincipal = new WindowsPrincipal(current); return windowsPrincipal.IsInRole(WindowsBuiltInRole.Administrator); }
转载声明:本文转载至http://www.zhoumy.cn/?p=9
标签:style blog http color ar sp div log bs
原文地址:http://www.cnblogs.com/DoNetCoder/p/4081367.html