Share via


IWMSOnDemandPublishingPoint.EnableClientWildcardDirectoryAccess (C#)

banner art

Previous Next

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.

Syntax

  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.

Number Description
0xC00D145AL The publishing point has already been removed.

Remarks

The default value is false.

Example Code

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 ==  
            WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_ON_DEMAND)
        {
            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;
            break;
        }
    }







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