Freigeben über


DatabasePartitionComponent.SetPartitionState Method

Sets partition state. Raises DatabasePartitionNotFoundException if the database does not have partition for the specified host.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Sub SetPartitionState ( _
    serviceHostId As Guid, _
    partitionState As DatabasePartitionState _
)
public void SetPartitionState(
    Guid serviceHostId,
    DatabasePartitionState partitionState
)
public:
void SetPartitionState(
    Guid serviceHostId, 
    DatabasePartitionState partitionState
)
member SetPartitionState : 
        serviceHostId:Guid * 
        partitionState:DatabasePartitionState -> unit
public function SetPartitionState(
    serviceHostId : Guid, 
    partitionState : DatabasePartitionState
)

Parameters

.NET Framework Security

See Also

Reference

DatabasePartitionComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace