InvalidInputException クラス
InvalidInputException クラスは、入力データの検証が DAC パッケージで失敗した場合に生成されます。
継承階層
System. . :: . .Object
System. . :: . .Exception
Microsoft.SqlServer.Management.Common. . :: . .SqlServerManagementException
Microsoft.SqlServer.Management.Dac. . :: . .DacException
Microsoft.SqlServer.Management.Dac..::..InvalidInputException
名前空間: Microsoft.SqlServer.Management.Dac
アセンブリ: Microsoft.SqlServer.Management.Dac (Microsoft.SqlServer.Management.Dac.dll)
構文
'宣言
<SerializableAttribute> _
Public NotInheritable Class InvalidInputException _
Inherits DacException
'使用
Dim instance As InvalidInputException
[SerializableAttribute]
public sealed class InvalidInputException : DacException
[SerializableAttribute]
public ref class InvalidInputException sealed : public DacException
[<SealedAttribute>]
[<SerializableAttribute>]
type InvalidInputException =
class
inherit DacException
end
public final class InvalidInputException extends DacException
InvalidInputException 型は、以下のメンバーを公開しています。
コンストラクター
| 名前 | 説明 | |
|---|---|---|
![]() |
InvalidInputException(String) | 指定されたメッセージ テキストを持つ InvalidInputException クラスの新しいインスタンスを初期化します。 |
![]() |
InvalidInputException(String, Exception) | 指定されたメッセージ テキストと内部例外を持つ InvalidInputException クラスの新しいインスタンスを初期化します。 |
先頭に戻る
プロパティ
| 名前 | 説明 | |
|---|---|---|
![]() |
DacExceptionType | 例外の種類を取得します。 (DacException から継承されています。) |
![]() |
Data | (Exception から継承されています。) |
![]() |
HelpLink | 例外の詳細についての URL ヘルプ リンクを表す文字列を取得します。 (DacException から継承されています。) |
![]() |
HResult | (Exception から継承されています。) |
![]() |
InnerException | (Exception から継承されています。) |
![]() |
Message | (Exception から継承されています。) |
![]() |
Source | (Exception から継承されています。) |
![]() |
StackTrace | (Exception から継承されています。) |
![]() |
TargetSite | (Exception から継承されています。) |
先頭に戻る
メソッド
| 名前 | 説明 | |
|---|---|---|
![]() |
Equals | (Object から継承されています。) |
![]() |
Finalize | (Object から継承されています。) |
![]() |
GetBaseException | (Exception から継承されています。) |
![]() |
GetHashCode | (Object から継承されています。) |
![]() |
GetObjectData | (Exception から継承されています。) |
![]() |
GetType | (Exception から継承されています。) |
![]() |
Init | プロバイダーのプロパティを初期化します。 (DacException から継承されています。) |
![]() |
MemberwiseClone | (Object から継承されています。) |
![]() |
SetHelpContext | ヘルプ リンクのヘルプ コンテキストを設定します。 (DacException から継承されています。) |
![]() |
ToString | (Exception から継承されています。) |
先頭に戻る
説明
InvalidInputException クラスを使用すると次のような操作を実行できます。
DAC 名前空間で無効な入力によって生成されたエラーを処理する。
エラーの原因を特定する。
スレッド セーフ
この型の public static (Microsoft Visual Basic では Shared) のすべてのメンバーは、マルチスレッド操作で安全に使用できます。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。
使用例
VC#
try
{
//Enter Dac code here.
}
//Catch the invalid input exception.
catch (InvalidInputException iiex)
{
System.Console.WriteLine("This is a invalid input exception");
//Display the exception message.
System.Console.WriteLine(iiex.Message);
}
//Catch other exceptions.
catch (Exception ex)
{
System.Console.WriteLine("This is another exception.");
}
スレッド セーフ
この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。
.gif)
.gif)
.gif)
.gif)