Condividi tramite


TeamFoundationSqlResourceComponent.GetSqlErrorNumberAsString Method

Helper that returns all the error numbers in a string for tracing purposes It's not super efficient but should only be called in case SQL is having issues which *should* be rare.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Protected Function GetSqlErrorNumberAsString ( _
    ex As SqlException _
) As String
protected string GetSqlErrorNumberAsString(
    SqlException ex
)
protected:
String^ GetSqlErrorNumberAsString(
    SqlException^ ex
)
member GetSqlErrorNumberAsString : 
        ex:SqlException -> string
protected function GetSqlErrorNumberAsString(
    ex : SqlException
) : String

Parameters

Return Value

Type: System.String
Returns String.

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace