次の方法で共有


CustomAttributeFormatException コンストラクター

定義

CustomAttributeFormatException クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
CustomAttributeFormatException()

既定のプロパティを使用して、 CustomAttributeFormatException クラスの新しいインスタンスを初期化します。

CustomAttributeFormatException(String)

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

CustomAttributeFormatException(SerializationInfo, StreamingContext)
古い.

指定したシリアル化とコンテキスト情報を使用して、 CustomAttributeFormatException クラスの新しいインスタンスを初期化します。

CustomAttributeFormatException(String, Exception)

指定したエラー メッセージと、この例外の原因である内部例外への参照を使用して、 CustomAttributeFormatException クラスの新しいインスタンスを初期化します。

CustomAttributeFormatException()

ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs

既定のプロパティを使用して、 CustomAttributeFormatException クラスの新しいインスタンスを初期化します。

public:
 CustomAttributeFormatException();
public CustomAttributeFormatException();
Public Sub New ()

注釈

このコンストラクターは、空のメッセージ文字列を使用して CustomAttributeFormatException のインスタンスを初期化し、根本原因の例外を null に設定します。

このコンストラクターは、 Exception オブジェクトのプロパティを次のように設定します。

財産 価値
InnerException null 値
Message 空の文字列 ("")。

適用対象

CustomAttributeFormatException(String)

ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs

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

public:
 CustomAttributeFormatException(System::String ^ message);
public CustomAttributeFormatException(string? message);
public CustomAttributeFormatException(string message);
new System.Reflection.CustomAttributeFormatException : string -> System.Reflection.CustomAttributeFormatException
Public Sub New (message As String)

パラメーター

message
String

この例外がスローされた理由を示すメッセージ。

注釈

このコンストラクターは、Exception オブジェクトのプロパティを次のように設定します。

財産 価値
InnerException null

こちらもご覧ください

適用対象

CustomAttributeFormatException(SerializationInfo, StreamingContext)

ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs

注意事項

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

指定したシリアル化とコンテキスト情報を使用して、 CustomAttributeFormatException クラスの新しいインスタンスを初期化します。

protected:
 CustomAttributeFormatException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected CustomAttributeFormatException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected CustomAttributeFormatException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Reflection.CustomAttributeFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Reflection.CustomAttributeFormatException
new System.Reflection.CustomAttributeFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Reflection.CustomAttributeFormatException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

パラメーター

info
SerializationInfo

カスタム属性をシリアル化または逆シリアル化するためのデータ。

context
StreamingContext

カスタム属性のソースと変換先。

属性

適用対象

CustomAttributeFormatException(String, Exception)

ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs
ソース:
CustomAttributeFormatException.cs

指定したエラー メッセージと、この例外の原因である内部例外への参照を使用して、 CustomAttributeFormatException クラスの新しいインスタンスを初期化します。

public:
 CustomAttributeFormatException(System::String ^ message, Exception ^ inner);
public CustomAttributeFormatException(string? message, Exception? inner);
public CustomAttributeFormatException(string message, Exception inner);
new System.Reflection.CustomAttributeFormatException : string * Exception -> System.Reflection.CustomAttributeFormatException
Public Sub New (message As String, inner As Exception)

パラメーター

message
String

例外の理由を説明するエラー メッセージ。

inner
Exception

現在の例外の原因である例外。 inner パラメーターがnullされていない場合、内部例外を処理するcatch ブロックで現在の例外が発生します。

注釈

前の例外の直接の結果としてスローされる例外は、 InnerException プロパティに前の例外への参照を含める必要があります。 InnerException プロパティは、コンストラクターに渡されるのと同じ値を返します。または、null プロパティがコンストラクターに内部例外値を提供しない場合はInnerExceptionします。

次の表に、 CustomAttributeFormatExceptionのインスタンスの初期プロパティ値を示します。

財産 価値
InnerException inner例外。
Message エラー メッセージ文字列。

こちらもご覧ください

適用対象