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
- serviceHostId
Type: System.Guid
- partitionState
Type: Microsoft.TeamFoundation.Framework.Server.DatabasePartitionState
.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.