SqlExecutionException.Database 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 name of the database being accessed when the exception occurred.
public:
property System::String ^ Database { System::String ^ get(); };
public string Database { get; }
member this.Database : string
Public ReadOnly Property Database As String
Property Value
The name of the database being accessed when the exception occurred.
Examples
The following code example shows how to access the Database property of the SqlExecutionException exception type. This code example is part of a larger example provided for the SqlServices class.
Console.WriteLine(" Database: {0}",
sqlExecutionException.Database);
Console.WriteLine(" Database: {0}", _
sqlExecutionException.Database)
Applies to
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.