共用方式為


ID 屬性

Gets the database ID value that uniquely identifies the database.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute> _
Public ReadOnly Property ID As Integer
    Get
'用途
Dim instance As Database
Dim value As Integer

value = instance.ID
[SfcPropertyAttribute]
public int ID { get; }
[SfcPropertyAttribute]
public:
virtual property int ID {
    int get () sealed;
}
[<SfcPropertyAttribute>]
abstract ID : int
[<SfcPropertyAttribute>]
override ID : int
final function get ID () : int

屬性值

型別:System. . :: . .Int32
An Int32 value that specifies the database ID value.

實作

IDatabaseOptions. . :: . .ID

備註

This property corresponds to the database ID value held in the system tables.