Freigeben über


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

  • 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

See Also

Reference

DatabasePartitionComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace