ObjectID 屬性
取得唯一識別套用權限之物件的識別碼值。
命名空間: 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 值,指定可唯一識別物件的識別碼值。
備註
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.