Share via


DatabaseReplicaState.DatabaseId 속성

Gets the identifier of the database, unique within an instance of SQL Server.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property DatabaseId As Integer 
    Get
‘사용 방법
Dim instance As DatabaseReplicaState 
Dim value As Integer 

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

속성 값

유형: System.Int32
The identifier of the database, unique within an instance of SQL Server.

참고 항목

참조

DatabaseReplicaState 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스