IWMSServerTotalCounters.Reset (C#)

banner art

Previous Next

IWMSServerTotalCounters.Reset (C#)

The Reset method resets all of the total counters to the current values.

Syntax

  IWMSServerTotalCounters
  .Reset();

Parameters

This method takes no parameters.

Return Values

This method does not return a value.

Example Code

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;









    // Retrieve a list of total statistics for the server.
    TotalCounters = Server.TotalCounters;

    // Reset all of the counters to the current values.
    TotalCounters.Reset();
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

Requirements

Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

Platform: Windows ServerĀ 2003 family, Windows ServerĀ 2008 family.

See Also

Previous Next