共用方式為


ObjectPermissionSet.ViewChangeTracking 屬性

Gets or sets the Boolean property value that specifies whether to include the VIEW CHANGE TRACKING permission in the permission set. This permission lets the grantee view the tracking information for a database object.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Property ViewChangeTracking As Boolean 
    Get 
    Set
'用途
Dim instance As ObjectPermissionSet 
Dim value As Boolean 

value = instance.ViewChangeTracking

instance.ViewChangeTracking = value
public bool ViewChangeTracking { get; set; }
public:
property bool ViewChangeTracking {
    bool get ();
    void set (bool value);
}
member ViewChangeTracking : bool with get, set
function get ViewChangeTracking () : boolean 
function set ViewChangeTracking (value : boolean)

屬性值

型別:System.Boolean
True if the ObjectPermissionSet includes the VIEW CHANGE TRACKING permission in the permission set; otherwise, false.

範例

授與、撤銷和拒絕權限

請參閱

參考

ObjectPermissionSet 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

啟用和停用變更追蹤 (SQL Server)