Database.MirroringRoleSequence 属性

Gets the role sequence number for primary/backup roles played by the mirroring partners.

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

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property MirroringRoleSequence As Integer 
    Get
用法
Dim instance As Database 
Dim value As Integer 

value = instance.MirroringRoleSequence
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int MirroringRoleSequence { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int MirroringRoleSequence {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member MirroringRoleSequence : int
function get MirroringRoleSequence () : int

属性值

类型:System.Int32
An Int32 value that specifies the sequence number of the primary/backup roles played by the mirroring partners.

示例

使用数据库对象

请参阅

参考

Database 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

数据库镜像管理

实现端点

创建、更改和删除数据库

CREATE DATABASE (Transact-SQL)