The PerfMonMode property controls Windows Performance Monitor polling behavior when the monitor is started.
object.PerfMonMode [= value]
object
Expression that evaluates to an object in the Applies To list
value
Long integer that specifies Windows Performance Monitor polling behavior as described in Settings
Long, enumerated
Read/write
HRESULT GetPerfMonMode(SQLDMO_PERFMON_TYPE* pRetVal);
HRESULT SetPerfMonMode(SQLDMO_PERFMON_TYPE NewValue);
Constant | Value | Description |
---|---|---|
SQLDMOPerfmon_Continuous | 0 | Configures Windows Performance Monitor statistics polling using the operating system default time slice. |
SQLDMOPerfmon_None | 1000 | Invalid value. |
SQLDMOPerfmon_OnDemand | 1 | Windows Performance Monitor polls for statistics when directed to do so by the user. |
The PerfMonMode property determines polling behavior as Windows Performance Monitor is started. Windows Performance Monitor polling behavior can be changed in Windows Performance Monitor when the application has successfully started.