TimeoutException コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
TimeoutException クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| TimeoutException() |
メッセージ テキストを使用せず、 TimeoutException クラスの新しいインスタンスを初期化します。 |
| TimeoutException(String) |
指定したメッセージ テキストを使用して、 TimeoutException クラスの新しいインスタンスを初期化します。 |
| TimeoutException(SerializationInfo, StreamingContext) |
古い.
指定したシリアル化情報とコンテキストを使用して、 TimeoutException クラスの新しいインスタンスを初期化します。 |
| TimeoutException(String, Exception) |
指定したメッセージ テキストと内部例外を使用して、 TimeoutException クラスの新しいインスタンスを初期化します。 |
TimeoutException()
メッセージ テキストを使用せず、 TimeoutException クラスの新しいインスタンスを初期化します。
public:
TimeoutException();
public TimeoutException();
Public Sub New ()
適用対象
TimeoutException(String)
指定したメッセージ テキストを使用して、 TimeoutException クラスの新しいインスタンスを初期化します。
public:
TimeoutException(System::String ^ message);
public TimeoutException(string? message);
public TimeoutException(string message);
new System.ServiceProcess.TimeoutException : string -> System.ServiceProcess.TimeoutException
Public Sub New (message As String)
パラメーター
- message
- String
例外の種類またはソースを表すテキスト。
適用対象
TimeoutException(SerializationInfo, StreamingContext)
注意事項
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
指定したシリアル化情報とコンテキストを使用して、 TimeoutException クラスの新しいインスタンスを初期化します。
protected:
TimeoutException(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 TimeoutException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected TimeoutException(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.ServiceProcess.TimeoutException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceProcess.TimeoutException
new System.ServiceProcess.TimeoutException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceProcess.TimeoutException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
パラメーター
- info
- SerializationInfo
スローされる例外に関するシリアル化されたオブジェクト データを保持する SerializationInfo。
- context
- StreamingContext
ソースまたは宛先に関するコンテキスト情報を含む StreamingContext。
- 属性
例外
info パラメーターはnull。
クラス名が null か、 HResult がゼロ (0) です。
適用対象
TimeoutException(String, Exception)
指定したメッセージ テキストと内部例外を使用して、 TimeoutException クラスの新しいインスタンスを初期化します。
public:
TimeoutException(System::String ^ message, Exception ^ innerException);
public TimeoutException(string? message, Exception? innerException);
public TimeoutException(string message, Exception innerException);
new System.ServiceProcess.TimeoutException : string * Exception -> System.ServiceProcess.TimeoutException
Public Sub New (message As String, innerException As Exception)
パラメーター
- message
- String
例外の種類またはソースを表すテキスト。
- innerException
- Exception
現在の例外の原因となった例外。