Condividi tramite


Proprietà ServerRole.ID

Gets the ID value that uniquely identifies the server role.

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

Sintassi

'Dichiarazione
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property ID As Integer 
    Get
'Utilizzo
Dim instance As ServerRole 
Dim value As Integer 

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

Valore proprietà

Tipo: System.Int32
An Int32 value that specifies the ID value that uniquely identifies the server role.

Esempi

Gestione di utenti, ruoli e account di accesso

Vedere anche

Riferimento

ServerRole Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Autorizzazioni dei ruoli predefiniti del server (Motore di database)

sp_addsrvrolemember (Transact-SQL)