IWMSAdminArchiveSink.Bandwidth (C#)

banner art

Previous Next

IWMSAdminArchiveSink.Bandwidth (C#)

The Bandwidth property retrieves the current bandwidth used by the content being archived.


  int = IWMSAdminArchiveSink.Bandwidth;

Property Value

int containing the bandwidth in bits per second.

If this property fails, it throws an exception.

Number Description
0x8000FFFF The WMS Archive Data Writer plug-in cannot be found.


This property is read-only.

Example Code

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

// Declare variables.
WMSServer Server;
IWMSBroadcastPublishingPoint BCPubPoint;
IWMSPlugin Plugin;
IWMSAdminArchiveSink AdminArchiveSink;

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

    // Add a new broadcast publishing point.
    BCPubPoint = (IWMSBroadcastPublishingPoint)

    // Retrieve the plug-in to be configured.
    Plugin = BCPubPoint.BroadcastDataSinks[
                             "WMS Archive Data Writer"];

    // Retrieve the custom interface of the plug-in.
    AdminArchiveSink =

    // Retrieve the current bandwidth of the content being archived.
    int iBandwidth = AdminArchiveSink.Bandwidth;
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
catch (Exception e) {
    // TODO: Handle exceptions.


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