TeamFoundationDatabaseManagementService.GetNumberOfDatabases Method
Get the number of databases that are registered to a pool.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function GetNumberOfDatabases ( _
requestContext As TeamFoundationRequestContext, _
poolName As String, _
status As Nullable(Of TeamFoundationDatabaseStatus) _
) As Integer
public int GetNumberOfDatabases(
TeamFoundationRequestContext requestContext,
string poolName,
Nullable<TeamFoundationDatabaseStatus> status
)
public:
int GetNumberOfDatabases(
TeamFoundationRequestContext^ requestContext,
String^ poolName,
Nullable<TeamFoundationDatabaseStatus> status
)
member GetNumberOfDatabases :
requestContext:TeamFoundationRequestContext *
poolName:string *
status:Nullable<TeamFoundationDatabaseStatus> -> int
public function GetNumberOfDatabases(
requestContext : TeamFoundationRequestContext,
poolName : String,
status : Nullable<TeamFoundationDatabaseStatus>
) : int
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
poolName
Type: System.StringThe name of the database pool.
status
Type: System.Nullable<TeamFoundationDatabaseStatus>The status of databases to search for. When null, all status' are included.
Return Value
Type: System.Int32
.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.