Getting and Setting Profiling Mode Parameters

Applies to AQTime 8.81, last modified on November 27, 2020

To obtain program access to profiling mode parameters via COM, connect to AQTime and call the GetRunMode method of the IntegrationManager object. This method returns a reference to the special program object, IaqTimeIntegrationRunMode, that provides information about the profiling mode and lets you specify profiling parameters. You can find a sample code the demonstrates using of this object in the Working With AQTime via COM - Overview topic.

The IaqTimeIntegrationRunMode object has the following methods and properties:

Methods and Properties(in alphabetical order) Description
GetParameterName(Index) Method. Returns the name of a parameter specified by its index.

To read a parameter’s name when working via COM, you should use this method. The Index parameter specifies the desired parameter. Index is zero-based and it should be less than the total number of parameters that is returned by the ParametersCount property. Otherwise, an error occurs.

GetParameterValue(Index) Method. Returns the value of a parameter specified by its index.

To read a parameter’s value when working via COM, you should use this method. The Index parameter specifies the desired parameter. Index is zero-based and it must be less than the total number of parameters that is returned by the ParametersCount property. Otherwise, an error occurs.

Name Property. Returns the name of the profiling mode to which the object relates.
ParametersCount Property. Specifies the number of parameters:
  • Normal Mode - 7
  • COM Server Mode - 4
  • ASP.NET Mode - 1
  • IIS Mode - 1
  • Service Mode - 0

In AQTime, they can be accessed via the Run Parameters dialog.

SetParameterValue(Index, Value)

Method. Assigns a new value to the specified parameter. The Index parameter defines the parameter to be set. The variant Value parameter specifies the value to be assigned.

The method returns the previous value of the changed parameter.

See Also

Automating AQTime
Working With AQTime via COM
Working With AQTime via COM - Overview
IaqTimeIntegrationSupportManager Object

Highlight search results