2010-06-17 63 views

回答

10

您可以查看當前WindowsIdentityIsGuest屬性:

if (System.Security.Principal.WindowsIdentity.GetCurrent().IsGuest) 
{ 
    // it's a guest account 
}