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


WindowsPrincipal オブジェクトの Identity プロパティを使用して、ユーザーの名前を取得する例を次に示します。
Dim wp As New WindowsPrincipal(WindowsIdentity.GetCurrent()) Dim username As String = wp.Identity.Name
WindowsPrincipal wp = new WindowsPrincipal(WindowsIdentity.GetCurrent()); String username = wp.Identity.Name;

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- WindowsPrincipal.Identity プロパティのページへのリンク