共用方式為


ServerAdapterBase.OptimizeAdhocWorkloads 屬性

Gets or sets a value that specifies whether optimization for ad hoc workloads is enabled.

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

語法

'宣告
Public Property OptimizeAdhocWorkloads As Boolean 
    Get 
    Set
'用途
Dim instance As ServerAdapterBase 
Dim value As Boolean 

value = instance.OptimizeAdhocWorkloads

instance.OptimizeAdhocWorkloads = value
public bool OptimizeAdhocWorkloads { get; set; }
public:
virtual property bool OptimizeAdhocWorkloads {
    bool get () sealed;
    void set (bool value) sealed;
}
abstract OptimizeAdhocWorkloads : bool with get, set 
override OptimizeAdhocWorkloads : bool with get, set
final function get OptimizeAdhocWorkloads () : boolean 
final function set OptimizeAdhocWorkloads (value : boolean)

屬性值

型別:System.Boolean
A Boolean value whether ad hoc workload optimization is enabled.If True, optimization is enabled. Otherwise, False.

請參閱

參考

ServerAdapterBase 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

針對特定工作負載最佳化伺服器組態選項