Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the partition id for a given host, or DatabasePartitionConstants.InvalidPartitionId if there's no ResourceManagement schema present or partition does not exist.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Shared Function GetPartitionId ( _
connectionString As String, _
hostId As Guid _
) As Integer
public static int GetPartitionId(
string connectionString,
Guid hostId
)
public:
static int GetPartitionId(
String^ connectionString,
Guid hostId
)
static member GetPartitionId :
connectionString:string *
hostId:Guid -> int
public static function GetPartitionId(
connectionString : String,
hostId : Guid
) : int
Parameters
- connectionString
Type: System.String
- hostId
Type: System.Guid
Return Value
Type: System.Int32
.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.