IWMSOnDemandPublishingPoint.EnableClientWildcardDirectoryAccess (C#)

The EnableClientWildcardDirectoryAccess property specifies and retrieves a Boolean value that indicates whether wildcard characters can be used to access files and directories.

OnDemandPublishingPoint.EnableClientWildcardDirectoryAccess = bool;
bool = OnDemandPublishingPoint.EnableClientWildcardDirectoryAccess;

Property Value

A bool indicating whether wildcard characters can be used.

If this property fails, it throws an exception.




The publishing point has already been removed.


The default value is false.


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

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

bool                         bVal;

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

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

    // Retrieve each publishing point and retrieve the
    // IWMSOnDemandPublishingPoint object.
    for (int i = 0; i < PubPoints.Count; i++)
        PubPoint = PubPoints[i];
        if (PubPoint.Type ==  
            ODPubPoint = (IWMSOnDemandPublishingPoint)PubPoint;

            // Retrieve a Boolean value indicating whether the
            // client is allowed to access content using wildcard
            // characters (for example, *.*).
            bVal = ODPubPoint.EnableClientWildcardDirectoryAccess;

            // Set a Boolean value indicating that the client
            // is allowed to access content using wildcard
            // characters (for example, *.*).
            ODPubPoint.EnableClientWildcardDirectoryAccess = true;
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


IWMSOnDemandPublishingPoint Object (C#)