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
hostId
Type: System.GuidId of the service host
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
- 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.