Delen via


TeamFoundationDataTierComponent.GetDatabaseCount Method

Gets the number of databases on the current server.

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

Syntax

'Declaration
Public Function GetDatabaseCount As Integer
public int GetDatabaseCount()
public:
int GetDatabaseCount()
member GetDatabaseCount : unit -> int
public function GetDatabaseCount() : int

Return Value

Type: System.Int32

Remarks

On Sql Azure this method can only be called if component is connected to the master database.

.NET Framework Security

See Also

Reference

TeamFoundationDataTierComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace