Поделиться через


Свойство PermissionInfo.ObjectID

Gets the ID value that uniquely identifies the object to which the permission applies.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public ReadOnly Property ObjectID As Integer 
    Get
'Применение
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

Значение свойства

Тип: System.Int32
An Int32 value that specifies the ID value that uniquely identifies the object.

Замечания

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.

Примеры

Предоставление, отмена и запрет разрешений

См. также

Справочник

PermissionInfo Класс

Пространство имен Microsoft.SqlServer.Management.Smo

Другие ресурсы

Разрешения (компонент Database Engine)

sys.syspermissions (Transact-SQL)