共用方式為


MirroringOption Enumeration

The MirroringOption enumeration contains values that specify the mirroring options for a database.

命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.SqlEnum (in microsoft.sqlserver.sqlenum.dll)

語法

'宣告
Public Enumeration MirroringOption
public enum MirroringOption
public enum class MirroringOption
public enum MirroringOption
public enum MirroringOption

Members

Member name Description
Failover Value = 4. Initiates a failover for the database.
ForceFailoverAndAllowDataLoss Value = 5. Forces a failover for the database.
Off Value = 0. Terminates mirroring for the database.
RemoveWitness Value = 3. Removes the witness for mirroring on the database.
Resume Value = 2. Resumes mirroring for the database.
Suspend Value = 1. Suspends mirroring for the database.

備註

更新的文字:

The MirroringOption enumeration class is served by the ChangeMirroringState method.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

Microsoft.SqlServer.Management.Smo Namespace