WindowsIdentity.User プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

[ComVisibleAttribute(false)] public: property SecurityIdentifier^ User { SecurityIdentifier^ get (); }
/** @property */ public SecurityIdentifier get_User ()
ユーザーの SecurityIdentifier オブジェクト。

SID は、すべての Windows NT 実装でユーザーまたはグループを一意に識別します。
![]() |
---|
GetAnonymous メソッドによって返されたWindowsIdentity オブジェクトは、匿名 Windows ユーザーと同じではありません。このプロパティは、GetAnonymous メソッドで返された WindowsIdentity オブジェクトによって表される匿名ユーザーに対して null 参照 (Visual Basic では Nothing) を取得します。匿名 Windows ユーザーを表す SID は取得しません。 |

User プロパティを使用して、ユーザーのセキュリティ識別子を表示する方法を次のコード例に示します。このコード例は、WindowsIdentity クラスのトピックで取り上げているコード例の一部分です。
WindowsIdentity^ windowsIdentity = gcnew WindowsIdentity( logonToken );

Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- WindowsIdentity.User プロパティのページへのリンク