AvailabilityGroup.Failover 方法

Performs a manual failover of this availability group to the server specified by the Parent property with no possibility of data loss.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub Failover
用法
Dim instance As AvailabilityGroup

instance.Failover()
public void Failover()
public:
void Failover()
member Failover : unit -> unit
public function Failover()

注释

This server should be participating in the availability group as a secondary replica. The result of the action will be to designate this server as the primary of this availability group.

请参阅

参考

AvailabilityGroup 类

Microsoft.SqlServer.Management.Smo 命名空间