WindowsIdentity.GetAnonymous メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WindowsIdentity.GetAnonymous メソッドの意味・解説 

WindowsIdentity.GetAnonymous メソッド

匿名のユーザーを表す WindowsIdentity オブジェクトを返します。

名前空間: System.Security.Principal
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Shared Function GetAnonymous
 As WindowsIdentity
Dim returnValue As WindowsIdentity

returnValue = WindowsIdentity.GetAnonymous
public static WindowsIdentity GetAnonymous
 ()
public:
static WindowsIdentity^ GetAnonymous ()
public static WindowsIdentity GetAnonymous
 ()
public static function GetAnonymous
 () : WindowsIdentity

戻り値
匿名のユーザーを表す WindowsIdentity オブジェクト。

解説解説
メモメモ

このプロパティは、匿名の Windows ユーザーに対応しない空の WindowsIdentity オブジェクトを返します。返された WindowsIdentity オブジェクトは、偽装などの便利な動作に使用できません。

使用例使用例

GetAnonymous メソッドを使用し、匿名の Windows ユーザーを表す WindowsIdentity オブジェクトを返すコード例を次に示します。このコード例は、WindowsIdentity クラスのトピックで取り上げているコード例の一部分です。

Dim windowsIdentity As WindowsIdentity
windowsIdentity = windowsIdentity.GetAnonymous()
WindowsIdentity windowsIdentity = WindowsIdentity.GetAnonymous();
WindowsIdentity^ windowsIdentity = WindowsIdentity::GetAnonymous();

WindowsIdentity windowsIdentity = WindowsIdentity.GetAnonymous();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WindowsIdentity クラス
WindowsIdentity メンバ
System.Security.Principal 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「WindowsIdentity.GetAnonymous メソッド」の関連用語

WindowsIdentity.GetAnonymous メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



WindowsIdentity.GetAnonymous メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS