IWMSPublishingPoints Interface

The IWMSPublishingPoints interface contains a collection of IWMSPublishingPoint interfaces.

In addition to the methods inherited from IDispatch, the IWMSPublishingPoints interface exposes the following methods.

Method

Description

Add

Creates a new IWMSPublishingPointIWMSPublishingPoint Interface and adds it to the IWMSPublishingPoints collection.

Clone

Creates a duplicate instance of a specific IWMSPublishingPoint interface.

get_Count

Retrieves the number of IWMSPublishingPoint interfaces in the IWMSPublishingPoints collection.

get_Item

Retrieves a specific IWMSPublishingPoint interface from the IWMSPublishingPoints collection.

get_length

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

ImportXML

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

Remove

Removes a specific IWMSPublishingPoint interface from the IWMSPublishingPoints collection.

Example

The following example illustrates how to retrieve a pointer to an IWMSPublishingPoints interface.

#include <windows.h>
#include "wmsserver.h"

// Declare variables and interfaces.
IWMSServer              *pServer;
IWMSPublishingPoints    *pPubPoints;

HRESULT         hr;

// Initialize the COM library and retrieve a pointer
// to an IWMSServer interface.
hr = CoInitialize(NULL);
hr = CoCreateInstance(CLSID_WMSServer,
                      NULL,
                      CLSCTX_ALL,
                      IID_IWMSServer,
                      (void **)&pServer);
if (FAILED(hr)) goto EXIT;

// Retrieve a pointer to the IWMSPublishingPoints interface.
hr = pServer->get_PublishingPoints(&pPubPoints);
if (FAILED(hr)) goto EXIT;

EXIT:
    // TODO: Release temporary COM objects and uninitialize COM.

See Also

Reference

IWMSServer Interface

Concepts

Server Object Model Interfaces (C++)