NegotiateStream.ImpersonationLevel プロパティ
アセンブリ: System (system.dll 内)

Dim instance As NegotiateStream Dim value As TokenImpersonationLevel value = instance.ImpersonationLevel
public: virtual property TokenImpersonationLevel ImpersonationLevel { TokenImpersonationLevel get (); }
ImpersonationLevel 値の 1 つ。


認証が成功しないと、このメソッドを呼び出すことはできません。クライアントは、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); }

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


Weblioに収録されているすべての辞書からNegotiateStream.ImpersonationLevel プロパティを検索する場合は、下記のリンクをクリックしてください。

- NegotiateStream.ImpersonationLevel プロパティのページへのリンク