Share via


IWMSOnDemandPublishingPoint.EnableClientWildcardDirectoryAccess (Visual Basic .NET)

banner art

Previous Next

IWMSOnDemandPublishingPoint.EnableClientWildcardDirectoryAccess (Visual Basic .NET)

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
  
  =
  
  Boolean
  
  Boolean
  
  =
  
  OnDemandPublishingPoint
  .EnableClientWildcardDirectoryAccess

Property Value

A Boolean that indicates whether wildcard characters can be used.

If this property fails, it returns an error number.

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

Remarks

The default value is False.

Example Code

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub EnableWildcards()

    ' Declare variables.
    Dim Server As WMSServer
    Dim PubPoints As IWMSPublishingPoints
    Dim PubPoint As IWMSPublishingPoint
    Dim ODPubPoint As IWMSOnDemandPublishingPoint
    Dim bVal As Boolean

Try
    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the IWMSPublishingPoints object.
    PubPoints = Server.PublishingPoints

    ' Retrieve each publishing point and retrieve the
    ' IWMSOnDemandPublishingPoint object.
    For Each PubPoint In PubPoints

        If PubPoint.Type = WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_ON_DEMAND Then
            ODPubPoint = PubPoint
            Exit For
        End If

    Next

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

    ' Set a Boolean value that indicates that the client
    ' is allowed to access content using wildcard
    ' characters (for example, *.*).
    ODPubPoint.EnableClientWildcardDirectoryAccess = True










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