Partager via


TeamFoundationSqlResourceComponent.TranslateSqlException Method

Not all TFS services use TeamFoundationSqlResourceComponent, but most want to use the common error handling that it contains. Therefore, a static TranslateSqlException can be used externally from the component.

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

Syntax

'Declaration
Public Shared Function TranslateSqlException ( _
    sqlException As SqlException _
) As Exception
public static Exception TranslateSqlException(
    SqlException sqlException
)
public:
static Exception^ TranslateSqlException(
    SqlException^ sqlException
)
static member TranslateSqlException : 
        sqlException:SqlException -> Exception
public static function TranslateSqlException(
    sqlException : SqlException
) : Exception

Parameters

Return Value

Type: System.Exception
Returns Exception.

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace