Share via


Propriété ObjectID

Obtient la valeur d'ID qui identifie de façon unique l'objet auquel l'autorisation s'applique.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public ReadOnly Property ObjectID As Integer
    Get
'Utilisation
Dim instance As PermissionInfo
Dim value As Integer

value = instance.ObjectID
public int ObjectID { get; }
public:
property int ObjectID {
    int get ();
}
member ObjectID : int
function get ObjectID () : int

Valeur de propriété

Type : System. . :: . .Int32
Valeur Int32 qui spécifie la valeur d'ID qui identifie de façon unique l'objet.

Notes

The ObjectID property is 0 for a Server object or a Database object. Otherwise, it specifies the ID of the object within the class specified by the ObjectClass property.