Share via


DatabasePartitionComponent.CreatePartition, méthode

Crée une partition pour un hôte donné.

Espace de noms :  Microsoft.TeamFoundation.Framework.Server
Assembly :  Microsoft.TeamFoundation.Framework.Server (dans Microsoft.TeamFoundation.Framework.Server.dll)

Syntaxe

'Déclaration
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
)

Paramètres

  • partitionId
    Type : System.Nullable<Int32>
    ID de partition facultatif - l'hôte de déploiement est bien un partitionId de savoir de 1

Valeur de retour

Type : System.Int32

Sécurité .NET Framework

Voir aussi

Référence

DatabasePartitionComponent Classe

Microsoft.TeamFoundation.Framework.Server, espace de noms