1 2 3 4 5 6 7 8
public string UserId { get { WindowsIdentity ident = WindowsIdentity.GetCurrent(); return ident.User.Value; } }