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 プロパティ
を検索
- NegotiateStream.ImpersonationLevel プロパティのページへのリンク