ObjectID 属性
获取唯一标识权限应用到的对象的 ID 值。
命名空间: 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
一个 Int32 值,该值指定唯一标识对象的 ID 值。
注释
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.