Share via


Database.MirroringID Property

Gets the ID value that uniquely identifies the mirroring partnership.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property MirroringID As Guid 
    Get
'Usage
Dim instance As Database 
Dim value As Guid 

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

Property Value

Type: System.Guid
A Guid system object value that specifies the ID value of the mirroring partnership.

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)