共用方式為


IDatabaseOptions.ChangeTrackingEnabled 屬性

Gets or sets a value indicating whether change tracking is enabled.

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

語法

'宣告
<DisplayDescriptionKeyAttribute("Database_ChangeTrackingEnabledDesc")> _
<DisplayNameKeyAttribute("Database_ChangeTrackingEnabledName")> _
Property ChangeTrackingEnabled As Boolean 
    Get 
    Set
'用途
Dim instance As IDatabaseOptions 
Dim value As Boolean 

value = instance.ChangeTrackingEnabled

instance.ChangeTrackingEnabled = value
[DisplayDescriptionKeyAttribute("Database_ChangeTrackingEnabledDesc")]
[DisplayNameKeyAttribute("Database_ChangeTrackingEnabledName")]
bool ChangeTrackingEnabled { get; set; }
[DisplayDescriptionKeyAttribute(L"Database_ChangeTrackingEnabledDesc")]
[DisplayNameKeyAttribute(L"Database_ChangeTrackingEnabledName")]
property bool ChangeTrackingEnabled {
    bool get ();
    void set (bool value);
}
[<DisplayDescriptionKeyAttribute("Database_ChangeTrackingEnabledDesc")>]
[<DisplayNameKeyAttribute("Database_ChangeTrackingEnabledName")>]
abstract ChangeTrackingEnabled : bool with get, set
function get ChangeTrackingEnabled () : boolean 
function set ChangeTrackingEnabled (value : boolean)

屬性值

型別:System.Boolean
A Boolean value that specifies whether change tracking information is supported by the database.If True, change tracking is enabled.If False (default), change tracking information is not enabled.

請參閱

參考

IDatabaseOptions 介面

Microsoft.SqlServer.Management.Smo 命名空間