TeamFoundationDatabaseSettings.ReadDeadlockRetryCount Method
This will first determine whether this database has a specific value for the deadlock retry count, 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 ReadDeadlockRetryCount ( _
requestContext As TeamFoundationRequestContext, _
databaseName As String _
) As Integer
public int ReadDeadlockRetryCount(
TeamFoundationRequestContext requestContext,
string databaseName
)
public:
int ReadDeadlockRetryCount(
TeamFoundationRequestContext^ requestContext,
String^ databaseName
)
member ReadDeadlockRetryCount :
requestContext:TeamFoundationRequestContext *
databaseName:string -> int
public function ReadDeadlockRetryCount(
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 retry count 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.