Database.MirroringRoleSequence Property

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property MirroringRoleSequence As Integer 
    Get
'Usage
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

Property Value

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

Examples

Working with Database Objects

See Also

Reference

Database Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Database Mirroring Administration

Implementing Endpoints

Creating, Altering, and Removing Databases

CREATE DATABASE (Transact-SQL)