Share via


DatabasePartitionComponent.QueryPartition Method (Int32)

Queries database partion by partition id

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

Syntax

'Declaration
Public Function QueryPartition ( _
    partitionId As Integer _
) As DatabasePartition
public DatabasePartition QueryPartition(
    int partitionId
)
public:
DatabasePartition^ QueryPartition(
    int partitionId
)
member QueryPartition : 
        partitionId:int -> DatabasePartition
public function QueryPartition(
    partitionId : int
) : DatabasePartition

Parameters

  • partitionId
    Type: System.Int32

    Id of the database partition

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 with the specified id.

.NET Framework Security

See Also

Reference

DatabasePartitionComponent Class

QueryPartition Overload

Microsoft.TeamFoundation.Framework.Server Namespace