Condividi tramite


Proprietà ID

Gets the database ID value that uniquely identifies the database.

Spazio dei nomi:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcPropertyAttribute> _
Public ReadOnly Property ID As Integer
    Get
'Utilizzo
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

Valore proprietà

Tipo: System. . :: . .Int32
An Int32 value that specifies the database ID value.

Implementa

IDatabaseOptions. . :: . .ID

Osservazioni

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