Share via


SqlExecutionException.Commands 속성

정의

예외가 발생했을 때 실행되고 있던 SQL 명령을 가져옵니다.

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

속성 값

String

예외가 발생했을 때 실행되고 있던 SQL 명령입니다.

예제

다음 코드 예제에 액세스 하는 방법을 보여 줍니다는 Commands 의 속성을 SqlExecutionException 예외 형식입니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 SqlServices 클래스입니다.

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

적용 대상