IAnalyticsMonitor TrackFeatureStop Method .NET Progress Telerik Platform Analytics Monitor Documentation, API Reference, Online Help | WPF, Silverlight, WinForms, Windows Phone Application Analytics
Register the end of a feature usage stared by TrackFeatureStart(String) with a similar featureName.

Namespace: EQATEC.Analytics.Monitor
Assembly: EQATEC.Analytics.Monitor (in EQATEC.Analytics.Monitor.dll) Version: 3.2.144.0 (3.2.144)
Syntax

TimeSpan TrackFeatureStop(
	string featureName
)

Parameters

featureName
Type: OnlineSystem String
The name of the feature. If it is null or empty the request is ignored.

Return Value

The total time tracked for this feature or TimeSpan.Zero if timing was not tracked
Remarks

Calling this method with a featureName that does not match an already started feature timing has no effect. All features timings are implicitly stopped by calling Stop .
Examples

The following shows an example of how you can track feature time in your application
try 
{
   m_monitor.TrackFeatureStart("SomeClass.Process");
   //some process logic to time
   m_monitor.TrackFeatureStop("SomeClass.Process");
}
catch(Exception exc)
{
  m_monitor.TrackFeatureCancel("SomeClass.Process");
  throw;
}
See Also