Partager via


DatabasePartitionComponent.QueryPartitionHostId Method

Queries service host id by partition id

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

Syntax

'Declaration
Public Function QueryPartitionHostId ( _
    partitionId As Integer _
) As Guid
public Guid QueryPartitionHostId(
    int partitionId
)
public:
Guid QueryPartitionHostId(
    int partitionId
)
member QueryPartitionHostId : 
        partitionId:int -> Guid
public function QueryPartitionHostId(
    partitionId : int
) : Guid

Parameters

  • partitionId
    Type: System.Int32

    Id of the database partition

Return Value

Type: System.Guid
Id of the service host that resides in the specified partition of Guid.Empty if the specified partition does not exist.

.NET Framework Security

See Also

Reference

DatabasePartitionComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace