Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- errorNumber
Type: System.Int32
- sqlException
Type: System.Data.SqlClient.SqlException
- sqlError
Type: System.Data.SqlClient.SqlError
Return Value
Type: System.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.