Compartir a través de


IWMSPublishingPoint.EnableWrapperPath (C#)

The EnableWrapperPath property specifies and retrieves a Boolean value indicating whether a wrapper playlist is enabled for the publishing point.

IWMSPublishingPoint.EnableWrapperPath = bool;
bool = IWMSPublishingPoint.EnableWrapperPath;

Property Value

A bool indicating whether a playlist is enabled.

If this property fails, it throws an exception.

Number

Description

0xC00D145AL

The publishing point was already removed.

0xC00D1452L

The method is not supported for cache proxy publishing points.

Remarks

The default value is false.

This method is not supported for cache proxy publishing points. Also, wrapper playlists are not used with broadcast data sinks. Therefore, the server will not use items in a wrapper playlist to send data to a multicast stream or to send data to an archive sink for archiving.

For more information about wrapper playlists, see the IWMSPublishingPointIWMSPublishingPoint.WrapperPath (C#)WrapperPath property.

Example

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

// Declare variables.
WMSServer              Server;
IWMSPublishingPoints   PubPoints;
IWMSPublishingPoint    PubPoint;

bool                   bVal;

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

    // Retrieve the IWMSPublishingPoints object.
    PubPoints = Server.PublishingPoints;

    // Retrieve information about each publishing point.
    for (int i = 0; i < PubPoints.Count; i++)
    {
        PubPoint = PubPoints[i];

        // Retrieve a Boolean value indicating whether
        // wrapper playlists are enabled.
        bVal = PubPoint.EnableWrapperPath;

        // Set a Boolean value indicating that
        // wrapper playlists are enabled.
        PubPoint.EnableWrapperPath = true;
    }
}
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

IWMSPublishingPoint Object (C#)

IWMSPublishingPoint.WrapperPath (C#)