SqlExceptionFactory.Create Method

Bind is used to bind the error returned from a SQL call to the exception it is mapped to. Use the SqlError supplied.

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

Syntax

'Declaration
Public Function Create ( _
    requestContext As TeamFoundationRequestContext, _
    errorNumber As Integer, _
    sqlException As SqlException, _
    sqlError As SqlError _
) As TeamFoundationServiceException
public TeamFoundationServiceException Create(
    TeamFoundationRequestContext requestContext,
    int errorNumber,
    SqlException sqlException,
    SqlError sqlError
)
public:
TeamFoundationServiceException^ Create(
    TeamFoundationRequestContext^ requestContext, 
    int errorNumber, 
    SqlException^ sqlException, 
    SqlError^ sqlError
)
member Create : 
        requestContext:TeamFoundationRequestContext * 
        errorNumber:int * 
        sqlException:SqlException * 
        sqlError:SqlError -> TeamFoundationServiceException
public function Create(
    requestContext : TeamFoundationRequestContext, 
    errorNumber : int, 
    sqlException : SqlException, 
    sqlError : SqlError
) : TeamFoundationServiceException

Parameters

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceException

.NET Framework Security

See Also

Reference

SqlExceptionFactory Class

Microsoft.TeamFoundation.Framework.Server Namespace