Share via


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

  • databaseName
    Type: System.String

    Specific database to retrieve the settings for

Return Value

Type: System.Int32
Returns the deadlock retry count to use for this connection

.NET Framework Security

See Also

Reference

TeamFoundationDatabaseSettings Class

Microsoft.TeamFoundation.Framework.Server Namespace