Share via


IWMSServerTotalCounters.Reset (C#)

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

IWMSServerTotalCounters.Reset();

Arguments

This method takes no parameters.

Return Value

This method does not return a value.

Example

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

// Declare variables.
WMSServer                  Server;
IWMSServerTotalCounters    TotalCounters;

try {
    // Create a new WMSServer object.
    Server = new WMSServerClass();

    // 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

Reference

IWMSServerTotalCounters Object (C#)

IWMSServerTotalCounters.CountersStartTime (C#)