DatabasePartitionComponent.CreatePartition Method
Creates a partition for a given host.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function CreatePartition ( _
hostId As Guid, _
state As DatabasePartitionState, _
partitionId As Nullable(Of Integer) _
) As Integer
public int CreatePartition(
Guid hostId,
DatabasePartitionState state,
Nullable<int> partitionId
)
public:
int CreatePartition(
Guid hostId,
DatabasePartitionState state,
Nullable<int> partitionId
)
member CreatePartition :
hostId:Guid *
state:DatabasePartitionState *
partitionId:Nullable<int> -> int
public function CreatePartition(
hostId : Guid,
state : DatabasePartitionState,
partitionId : Nullable<int>
) : int
Parameters
- hostId
Type: System.Guid
state
Type: Microsoft.TeamFoundation.Framework.Server.DatabasePartitionStatePartition state
partitionId
Type: System.Nullable<Int32>Optional partition id - Deployment host gets a well know partitionId of 1
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.