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