InvalidInputException クラス
The InvalidInputException class is raised when validation of input data fails in the DAC package.
継承階層
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)
構文
'宣言
<> _
Public NotInheritable Class InvalidInputException _
Inherits DacException
'使用
Dim instance As InvalidInputException
[]
public sealed class InvalidInputException : DacException
[]
public ref class InvalidInputException sealed : public DacException
[<>]
[<>]
type InvalidInputException =
class
inherit DacException
end
public final class InvalidInputException extends DacException
InvalidInputException 型は、以下のメンバーを公開しています。
コンストラクター
名前 | 説明 | |
---|---|---|
InvalidInputException(String) | Initializes a new instance of the InvalidInputException class that has the specified message text. | |
InvalidInputException(String, Exception) | Initializes a new instance of the InvalidInputException class that has the specified message text and inner exception. |
先頭に戻る
プロパティ
名前 | 説明 | |
---|---|---|
DacExceptionType | Gets the type of the exception. (DacException から継承されています。) | |
( から継承されています。) | ||
HelpLink | Gets a string with the URL help link that further explains the exception. (DacException から継承されています。) | |
( から継承されています。) | ||
( から継承されています。) | ||
( から継承されています。) | ||
( から継承されています。) | ||
( から継承されています。) | ||
( から継承されています。) |
先頭に戻る
メソッド
名前 | 説明 | |
---|---|---|
( から継承されています。) | ||
( から継承されています。) | ||
( から継承されています。) | ||
( から継承されています。) | ||
( から継承されています。) | ||
( から継承されています。) | ||
Init | Initializes provider properties. (DacException から継承されています。) | |
( から継承されています。) | ||
SetHelpContext | Sets the help context for the help link. (DacException から継承されています。) | |
( から継承されています。) |
先頭に戻る
説明
Using the InvalidInputException class, you can:
Handle errors generated by invalid input in the DAC namespace.
Determine the cause of the error.
Thread Safety
この型の 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) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。
関連項目
参照
Microsoft.SqlServer.Management.Dac 名前空間