DatabasePartitionComponent.QueryPartitionId Method

Queries database partion id

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

Syntax

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

Parameters

Return Value

Type: System.Int32
Id of the partition or DatabasePartitionConstants.InvalidPartitionId if the database does not have partition for the specified host.

.NET Framework Security

See Also

Reference

DatabasePartitionComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace