SystemMonitor::DataSourceType property

Retrieves or sets the source of the performance counter data.

Syntax

Property DataSourceType As DataSourceTypeConstants

Property value

Source of the performance counter data. For possible values, see DataSourceTypeConstants.

Exceptions

Exception type Condition
System.ArgumentException You can receive this exception for one of the following reasons:
  • The specified data source value is not valid.
  • If the data source is a log file, SYSMON cannot find one of the specified files. The Err.Number value is 0xC0000BD1.

Remarks

Prior to Windows Vista: You cannot add or remove a log files from the log file collection if the value of this property is set to sysmonLogFiles. Only set the value of this property to sysmonLogFiles after creating or modifying the log file collection.

Also, you cannot modify the SqlDsnName and SqlLogSetName properties if the value of this property must not be set to sysmonSqlLog. Only set the value of this property to sysmonSqlLog after modifying the server and database names.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
DLL
Sysmon.ocx

See also

SystemMonitor