Freigeben über


DatabasePartitionComponent.GetPartitionId Method

Returns the partition id for a given host, or DatabasePartitionConstants.InvalidPartitionId if there's no ResourceManagement schema present or partition does not exist.

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

Syntax

'Declaration
Public Shared Function GetPartitionId ( _
    connectionString As String, _
    hostId As Guid _
) As Integer
public static int GetPartitionId(
    string connectionString,
    Guid hostId
)
public:
static int GetPartitionId(
    String^ connectionString, 
    Guid hostId
)
static member GetPartitionId : 
        connectionString:string * 
        hostId:Guid -> int
public static function GetPartitionId(
    connectionString : String, 
    hostId : Guid
) : int

Parameters

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

DatabasePartitionComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace