Compartir a través de


IWMSOutgoingDistributionConnections Interface

The IWMSOutgoingDistributionConnections interface contains a collection of IWMSOutgoingDistributionConnection interfaces.

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

Method

Description

get_Count

Retrieves the number of IWMSOutgoingDistributionConnection interfaces that are contained in the IWMSOutgoingDistributionConnections collection.

get_Item

Retrieves an IWMSOutgoingDistributionConnectionIWMSOutgoingDistributionConnection Interface from the IWMSOutgoingDistributionConnections collection.

get_length

Retrieves the number of IWMSOutgoingDistributionConnection interfaces that are contained in the IWMSOutgoingDistributionConnections collection. This method is provided for JScript compatibility.

Refresh

Updates the list of IWMSOutgoingDistributionConnection interfaces in the IWMSOutgoingDistributionConnections collection.

Remove

Removes an IWMSOutgoingDistributionConnection interface from the IWMSOutgoingDistributionConnections collection.

RemoveAll

Removes all IWMSOutgoingDistributionConnection interface from the IWMSOutgoingDistributionConnections collection.

Example

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

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

// Declare variables and interfaces.
IWMSServer                          *pServer;
IWMSOutgoingDistributionConnections *pConnections;

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 a collection of distribution
// connections.
hr = pServer->get_OutgoingDistributionConnections(&pConnections);
if (FAILED(hr)) goto EXIT;

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

See Also

Reference

IWMSOutgoingDistributionConnection Interface

Concepts

Server Object Model Interfaces (C++)