NegotiateStream.ImpersonationLevel プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > NegotiateStream.ImpersonationLevel プロパティの意味・解説 

NegotiateStream.ImpersonationLevel プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

サーバーでクライアントの資格情報を使用する方法を示す値を取得します。

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

Public Overridable ReadOnly
 Property ImpersonationLevel As TokenImpersonationLevel
Dim instance As NegotiateStream
Dim value As TokenImpersonationLevel

value = instance.ImpersonationLevel
public virtual TokenImpersonationLevel ImpersonationLevel { get;
 }
public:
virtual property TokenImpersonationLevel ImpersonationLevel {
    TokenImpersonationLevel get ();
}
/** @property */
public TokenImpersonationLevel get_ImpersonationLevel ()
public function get ImpersonationLevel
 () : TokenImpersonationLevel

プロパティ値
ImpersonationLevel 値の 1 つ。

例外例外
例外の種類条件

InvalidOperationException

認証に失敗したか、認証が行われていません。

解説解説

認証が成功しないと、このメソッドを呼び出すことはできません。クライアントは、AuthenticateAsClient メソッドまたは BeginAuthenticateAsClient メソッドのいずれかを呼び出すことによって認証を要求するときに、偽装レベルを指定します。TokenImpersonationLevel を指定せずに認証を行うと、Identification が使用されます。

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition プラットフォームメモ : これらのプラットフォームでは、認証に NTLM を使用します。NTLM は偽装をサポートしていません。

使用例使用例

このプロパティの値を表示する方法については、次のコード例を参照してください。

 static void DisplayAuthenticationProperties(NegotiateStream
 stream)
{
     Console.WriteLine("IsAuthenticated: {0}", stream.IsAuthenticated);
    Console.WriteLine("IsMutuallyAuthenticated: {0}", stream.IsMutuallyAuthenticated);
    Console.WriteLine("IsEncrypted: {0}", stream.IsEncrypted);
    Console.WriteLine("IsSigned: {0}", stream.IsSigned);
    Console.WriteLine("ImpersonationLevel: {0}", stream.ImpersonationLevel);
    Console.WriteLine("IsServer: {0}", stream.IsServer);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NegotiateStream クラス
NegotiateStream メンバ
System.Net.Security 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

NegotiateStream.ImpersonationLevel プロパティのお隣キーワード
検索ランキング

   

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



NegotiateStream.ImpersonationLevel プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS