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
- sqlException
Type: System.Data.SqlClient.SqlException
Return Value
Type: System.Exception
Returns Exception.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.