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)


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


Return Value

Type: System.Exception
Returns Exception.

.NET Framework Security

See Also


TeamFoundationSqlResourceComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace