共用方式為


Settings.PerfMonMode 屬性

Gets the polling behavior of Performance Monitor on the instance of SQL Server.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property PerfMonMode As PerfMonMode 
    Get 
    Set
'用途
Dim instance As Settings 
Dim value As PerfMonMode 

value = instance.PerfMonMode

instance.PerfMonMode = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public PerfMonMode PerfMonMode { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property PerfMonMode PerfMonMode {
    PerfMonMode get ();
    void set (PerfMonMode value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member PerfMonMode : PerfMonMode with get, set
function get PerfMonMode () : PerfMonMode 
function set PerfMonMode (value : PerfMonMode)

屬性值

型別:Microsoft.SqlServer.Management.Smo.PerfMonMode
A PerfMonMode object that specifies the polling behavior in Performance Monitor.

範例

在 SMO 中設定 SQL Server

請參閱

參考

Settings 類別

Microsoft.SqlServer.Management.Smo 命名空間