Share via


IWMSOutgoingDistributionConnections Object (Visual Basic .NET)

The IWMSOutgoingDistributionConnections object contains a collection of IWMSOutgoingDistributionConnection objects.

The IWMSOutgoingDistributionConnections object exposes the following properties and methods.

Property

Description

Count

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

Item

Retrieves an IWMSOutgoingDistributionConnectionIWMSOutgoingDistributionConnection Object (Visual Basic .NET) from the IWMSOutgoingDistributionConnections collection.

length

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

Method

Description

Refresh

Updates the list of IWMSOutgoingDistributionConnection objects in the IWMSOutgoingDistributionConnections collection.

Remove

Removes an IWMSOutgoingDistributionConnection object from the IWMSOutgoingDistributionConnections collection.

RemoveAll

Removes all IWMSOutgoingDistributionConnection objects from the IWMSOutgoingDistributionConnections collection.

Example

The following example illustrates how to retrieve an IWMSOutgoingDistributionConnections object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Connections As IWMSOutgoingDistributionConnections

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

    ' Retrieve the IWMSOutgoingDistributionConnections object.
    Connections = Server.OutgoingDistributionConnections

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

IWMSOutgoingDistributionConnection Object (Visual Basic .NET)

Concepts

Server Object Model (Visual Basic .NET)