Partager via


IWMSPublishingPoints Object (Visual Basic .NET)

The IWMSPublishingPoints object contains a collection of IWMSPublishingPoint objects.

The IWMSPublishingPoints object exposes the following properties and methods.

Property

Description

Count

Retrieves the number of IWMSPublishingPoint objects in the IWMSPublishingPoints collection.

Item

Retrieves a specific IWMSPublishingPointIWMSPublishingPoint Object (Visual Basic .NET) from the IWMSPublishingPoints collection.

length

Retrieves the number of IWMSPublishingPoint objects in the IWMSPublishingPoints collection. This method is provided for JScript compatibility.

Method

Description

Add

Creates a new IWMSPublishingPoint object and adds it to the IWMSPublishingPoints collection.

Clone

Creates a duplicate instance of a specific IWMSPublishingPoint object.

ImportXML

Creates a new publishing point using the configuration data specified in an XML file.

Remove

Removes a specific IWMSPublishingPoint object from the IWMSPublishingPoints collection.

Example

The following example illustrates how to retrieve an IWMSPublishingPoints object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim PubPoints As IWMSPublishingPoints

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

    ' Retrieve the IWMSPublishingPoints object.
    PubPoints = Server.PublishingPoints

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

Reference

IWMSServer Object (Visual Basic .NET)

Concepts

Server Object Model (Visual Basic .NET)