Delen via


DatabasePartitionComponent.QueryPartition Method (Guid)

Queries database partion by host id.

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

Syntax

'Declaration
Public Function QueryPartition ( _
    hostId As Guid _
) As DatabasePartition
public DatabasePartition QueryPartition(
    Guid hostId
)
public:
DatabasePartition^ QueryPartition(
    Guid hostId
)
member QueryPartition : 
        hostId:Guid -> DatabasePartition
public function QueryPartition(
    hostId : Guid
) : DatabasePartition

Parameters

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.DatabasePartition
DatabasePartion object that contains information about the partition, or null if the database does not have partition for the specified host.

.NET Framework Security

See Also

Reference

DatabasePartitionComponent Class

QueryPartition Overload

Microsoft.TeamFoundation.Framework.Server Namespace