Delen via


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 Exception
public Exception Create(
    TeamFoundationRequestContext requestContext,
    int errorNumber,
    SqlException sqlException,
    SqlError sqlError
)
public:
Exception^ Create(
    TeamFoundationRequestContext^ requestContext, 
    int errorNumber, 
    SqlException^ sqlException, 
    SqlError^ sqlError
)
member Create : 
        requestContext:TeamFoundationRequestContext * 
        errorNumber:int * 
        sqlException:SqlException * 
        sqlError:SqlError -> Exception
public function Create(
    requestContext : TeamFoundationRequestContext, 
    errorNumber : int, 
    sqlException : SqlException, 
    sqlError : SqlError
) : Exception

Parameters

Return Value

Type: System.Exception

.NET Framework Security

See Also

Reference

SqlExceptionFactory Class

Microsoft.TeamFoundation.Framework.Server Namespace