Share via


TeamFoundationDatabaseSettings Class

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseSettings

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
<TeamFoundationServiceDependency(GetType(TeamFoundationSqlNotificationService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationRegistryService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationResourceManagementService))> _
Public NotInheritable Class TeamFoundationDatabaseSettings _
    Implements ITeamFoundationService
[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))]
public sealed class TeamFoundationDatabaseSettings : ITeamFoundationService
[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))]
public ref class TeamFoundationDatabaseSettings sealed : ITeamFoundationService
[<Sealed>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))>]
type TeamFoundationDatabaseSettings =  
    class 
        interface ITeamFoundationService 
    end
public final class TeamFoundationDatabaseSettings implements ITeamFoundationService

The TeamFoundationDatabaseSettings type exposes the following members.

Methods

  Name Description
Public method ClearConnectionString This will remove a connection string for a specified database.
Public methodStatic member ClearSqlConnectionPool Clears the SQL connection pool for all the supplied connection strings.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetAllConnectionStrings Builds a collection of the connection strings to likely used by TFS to access this host. Useful for clearing the SQL connection pool.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method QueryConnectionStrings(TeamFoundationRequestContext) Returns connection strings for each logical database.
Public methodStatic member QueryConnectionStrings(String, Guid) Returns connection strings for each logical database.
Public method ReadConnectionString This will examine the specified database and retrieve the connection string. If the database is not configured, the then a null value is returned.
Public method ReadConnectionTimeout
Public method ReadDeadlockPause 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
Public method ReadDeadlockRetryCount 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
Public method ReadExecutionTimeThreshold Read the ExecutionTimeThreshold
Public method ReadLoggingOptions Read the logging options
Public method ReadPerformanceOptions Read the performance options
Public method ReadTimeout This will examine the specified database and retrieve the connection string. If the database is not configured, the then a null value is returned.
Public method SetConnectionString This will set the connection string for a specified database. This immediately clears the cache.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method ValidateCategory ValidateCategory is used to make sure that the requestContext has the right to access the database and that the schema version matches between the component and the extended property

Top

Events

  Name Description
Public event ConnectionStringsUpdated This is fired whenever a connection string is added or updated. The List passed in will contain the updated connection strings.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceEnd
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceStart

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace