ServiceSecurityContext.WindowsIdentity 属性

定义

获取当前设置的 Windows 标识。

public:
 property System::Security::Principal::WindowsIdentity ^ WindowsIdentity { System::Security::Principal::WindowsIdentity ^ get(); };
public System.Security.Principal.WindowsIdentity WindowsIdentity { get; }
member this.WindowsIdentity : System.Security.Principal.WindowsIdentity
Public ReadOnly Property WindowsIdentity As WindowsIdentity

属性值

WindowsIdentity

一个表示 Windows 域用户的 WindowsIdentity

示例

PrincipalPermissionAttribute

IPrincipal

注解

如果远程方无法与 Windows 帐户关联,则 IsAnonymous 属性将设置为 true

适用于