SqlExecutionException.Exception Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the exception encountered when processing the SQL commands.
public:
property System::Data::SqlClient::SqlException ^ Exception { System::Data::SqlClient::SqlException ^ get(); };
public System.Data.SqlClient.SqlException Exception { get; }
member this.Exception : System.Data.SqlClient.SqlException
Public ReadOnly Property Exception As SqlException
Property Value
The SqlException encountered when processing the SQL commands.
Examples
The following code example shows how to access the Exception property of the SqlExecutionException exception type. This code example is part of a larger example provided for the SqlServices class.
Console.WriteLine(" Inner Exception: {0}",
sqlExecutionException.Exception);
Console.WriteLine(" Inner Exception: {0}", _
sqlExecutionException.Exception)
Applies to
See also
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.