SqlExecutionException.SqlFile プロパティ

定義

例外の発生時に実行されていた SQL コマンドが記録されているファイルの名前およびパスを取得します。

public:
 property System::String ^ SqlFile { System::String ^ get(); };
public string SqlFile { get; }
member this.SqlFile : string
Public ReadOnly Property SqlFile As String

プロパティ値

String

例外の発生時に実行されていた SQL コマンドが記録されているファイルの名前およびパス。

次のコード例は、例外の種類の SqlFile プロパティにアクセスする方法を SqlExecutionException 示しています。 このコード例は、SqlServices クラスのために提供されている大規模な例の一部です。

Console.WriteLine("  SqlFile: {0}",
    sqlExecutionException.SqlFile);
Console.WriteLine("  SqlFile: {0}", _
    sqlExecutionException.SqlFile)

適用対象