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.Int32Id 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.