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 命名空间