TeamFoundationDatabaseSettings.ReadDeadlockPause Method
This will first determine whether this database has a specific value for the deadlock pause, if not it will return the default value configured for all databases
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function ReadDeadlockPause ( _
requestContext As TeamFoundationRequestContext, _
databaseName As String _
) As Integer
public int ReadDeadlockPause(
TeamFoundationRequestContext requestContext,
string databaseName
)
public:
int ReadDeadlockPause(
TeamFoundationRequestContext^ requestContext,
String^ databaseName
)
member ReadDeadlockPause :
requestContext:TeamFoundationRequestContext *
databaseName:string -> int
public function ReadDeadlockPause(
requestContext : TeamFoundationRequestContext,
databaseName : String
) : int
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
databaseName
Type: System.StringSpecific database to retrieve the settings for
Return Value
Type: System.Int32
Returns the deadlock pause to use for this connection
.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.