Export (0) Print
Expand All

TeamFoundationDatabaseSettings Class

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

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

[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))]
public sealed class TeamFoundationDatabaseSettings : ITeamFoundationService

The TeamFoundationDatabaseSettings type exposes the following members.

  NameDescription
Public methodClearConnectionStringThis will remove a connection string for a specified database.
Public methodStatic memberClearSqlConnectionPoolClears the SQL connection pool for all the supplied connection strings.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetAllConnectionStringsBuilds a collection of the connection strings to likely used by TFS to access this host. Useful for clearing the SQL connection pool.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodQueryConnectionStrings(TeamFoundationRequestContext)Returns connection strings for each logical database.
Public methodStatic memberQueryConnectionStrings(String, Guid)Returns connection strings for each logical database.
Public methodReadConnectionStringThis will examine the specified database and retrieve the connection string. If the database is not configured, the then a null value is returned.
Public methodReadConnectionTimeout
Public methodReadDeadlockPauseThis 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 methodReadDeadlockRetryCountThis 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 methodReadExecutionTimeThresholdRead the ExecutionTimeThreshold
Public methodReadLoggingOptionsRead the logging options
Public methodReadPerformanceOptionsRead the performance options
Public methodReadTimeoutThis will examine the specified database and retrieve the connection string. If the database is not configured, the then a null value is returned.
Public methodSetConnectionStringThis will set the connection string for a specified database. This immediately clears the cache.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodValidateCategoryValidateCategory 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

  NameDescription
Public eventConnectionStringsUpdatedThis is fired whenever a connection string is added or updated. The List passed in will contain the updated connection strings.
Top

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