authenticationExceptionとは? わかりやすく解説

AuthenticationException クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

認証ストリームの認証が失敗した場合にスローされる例外。

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

<SerializableAttribute> _
Public Class AuthenticationException
    Inherits SystemException
Dim instance As AuthenticationException
[SerializableAttribute] 
public class AuthenticationException : SystemException
[SerializableAttribute] 
public ref class AuthenticationException :
 public SystemException
/** @attribute SerializableAttribute() */ 
public class AuthenticationException extends
 SystemException
SerializableAttribute 
public class AuthenticationException extends
 SystemException
解説解説

NegotiateStream クラスおよび SslStream クラスは、クライアントまたはサーバーを認証できない場合にこの例外をスローします。この例外がスローされた場合、別の資格情報を使用して認証を再試行できます。認証を再試行できない場合は、AuthenticationException の代わりに FatalAuthenticationException がスローされます。

使用例使用例

NegotiateStream | SslStream

継承階層継承階層
System.Object
   System.Exception
     System.SystemException
      System.Security.Authentication.AuthenticationException
         System.Security.Authentication.InvalidCredentialException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AuthenticationException メンバ
System.Security.Authentication 名前空間

AuthenticationException コンストラクタ ()


AuthenticationException コンストラクタ (String)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

指定したメッセージを使用して、AuthenticationException クラスの新しいインスタンスを初期化します。

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

Dim message As String

Dim instance As New AuthenticationException(message)
public AuthenticationException (
    string message
)
public:
AuthenticationException (
    String^ message
)
public AuthenticationException (
    String message
)
public function AuthenticationException (
    message : String
)

パラメータ

message

認証エラーを説明する String。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AuthenticationException クラス
AuthenticationException メンバ
System.Security.Authentication 名前空間
NegotiateStream
SslStream

AuthenticationException コンストラクタ (String, Exception)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

指定したメッセージと内部例外を使用して、AuthenticationException クラスの新しいインスタンスを初期化します。

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

Public Sub New ( _
    message As String, _
    innerException As Exception _
)
Dim message As String
Dim innerException As Exception

Dim instance As New AuthenticationException(message,
 innerException)
public AuthenticationException (
    string message,
    Exception innerException
)
public:
AuthenticationException (
    String^ message, 
    Exception^ innerException
)
public AuthenticationException (
    String message, 
    Exception innerException
)
public function AuthenticationException (
    message : String, 
    innerException : Exception
)

パラメータ

message

認証エラーを説明する String。

innerException

現在の例外の原因である Exception。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AuthenticationException クラス
AuthenticationException メンバ
System.Security.Authentication 名前空間
NegotiateStream
SslStream

AuthenticationException コンストラクタ

AuthenticationException クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
AuthenticationException () メッセージを指定せずに、AuthenticationException クラスの新しいインスタンスを初期化します。
AuthenticationException (String) 指定したメッセージを使用して、AuthenticationException クラスの新しいインスタンスを初期化します。
AuthenticationException (SerializationInfo, StreamingContext) SerializationInfo クラスと StreamingContext クラスの指定したインスタンスから、AuthenticationException クラスの新しいインスタンスを初期化します。
AuthenticationException (String, Exception) 指定したメッセージと内部例外を使用して、AuthenticationException クラスの新しいインスタンスを初期化します。
参照参照

関連項目

AuthenticationException クラス
AuthenticationException メンバ
System.Security.Authentication 名前空間

AuthenticationException コンストラクタ (SerializationInfo, StreamingContext)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

SerializationInfo クラスと StreamingContext クラスの指定したインスタンスから、AuthenticationException クラスの新しいインスタンスを初期化します。

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

Protected Sub New ( _
    serializationInfo As SerializationInfo, _
    streamingContext As StreamingContext _
)
Dim serializationInfo As SerializationInfo
Dim streamingContext As StreamingContext

Dim instance As New AuthenticationException(serializationInfo,
 streamingContext)
protected AuthenticationException (
    SerializationInfo serializationInfo,
    StreamingContext streamingContext
)
protected:
AuthenticationException (
    SerializationInfo^ serializationInfo, 
    StreamingContext streamingContext
)
protected AuthenticationException (
    SerializationInfo serializationInfo, 
    StreamingContext streamingContext
)
protected function AuthenticationException
 (
    serializationInfo : SerializationInfo, 
    streamingContext : StreamingContext
)

パラメータ

serializationInfo

新しい AuthenticationException インスタンスを逆シリアル化するために必要な情報を格納する SerializationInfo インスタンス。

streamingContext

StreamingContext のインスタンス。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AuthenticationException クラス
AuthenticationException メンバ
System.Security.Authentication 名前空間
NegotiateStream
SslStream
その他の技術情報
XML シリアル化および SOAP シリアル化

AuthenticationException プロパティ


AuthenticationException メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

AuthenticationException クラス
System.Security.Authentication 名前空間

AuthenticationException メンバ

認証ストリームの認証が失敗した場合にスローされる例外。

AuthenticationException データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド AuthenticationException オーバーロードされます。 AuthenticationException クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外に割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

AuthenticationException クラス
System.Security.Authentication 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「authenticationException」の関連用語

authenticationExceptionのお隣キーワード
検索ランキング

   

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



authenticationExceptionのページの著作権

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

©2026 GRAS Group, Inc.RSS