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 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からAuthenticationExceptionを検索した結果を表示しています。
Weblioに収録されているすべての辞書からAuthenticationExceptionを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からAuthenticationException を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「AuthenticationException」の関連用語

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

   

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



AuthenticationExceptionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS