IWMSOnDemandPublishingPoint Object (Visual Basic .NET)

banner art

Previous Next

IWMSOnDemandPublishingPoint Object (Visual Basic .NET)

You can use the IWMSOnDemandPublishingPoint object to describe the properties of a publishing point.

In addition to the methods inherited from the IWMSPublishingPoint object, the IWMSOnDemandPublishingPoint object exposes the following properties and methods.

Property Description
AllowContentCaching Specifies and retrieves a Boolean value that indicates whether content from the publishing point can be cached.
DownloadBandwidth Reserved for future use.
EnableClientWildcardDirectoryAccess Specifies and retrieves a Boolean value that indicates whether wildcard characters can be used to access files and directories.
EnableDownload Reserved for future use.
Method Description
ExportXML Creates a file that contains publishing point configuration data.

Example Code

The following example illustrates how to retrieve an IWMSOnDemandPublishingPoint object.

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

Private Sub RetrieveObj()

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

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

Catch excCom As COMException
    ' TODO: Handle COM exceptions.
Catch exc As Exception
    ' TODO: Handle errors.
Finally
    ' TODO: Clean-up code goes here.
End Try

End Sub

See Also

Previous Next