次の方法で共有


IWMSOutgoingDistributionConnection Object (Visual Basic .NET)

The IWMSOutgoingDistributionConnection object manages distribution connections. Distribution connections are used to stream content between servers. For example, a cache server, acting as a client, can connect to a Windows Media server and distribute content to players or to other servers.

The IWMSOutgoingDistributionConnection object exposes the following properties.

Property

Description

ID

Retrieves a unique value identifying a client that is receiving the distributed content.

NetworkAddress

Retrieves the network address of the client receiving the distributed content.

Port

Retrieves the port number of the client receiving the distributed content.

RequestedPlaylist

Retrieves the client's requested playlist object.

RequestedURL

Retrieves the URL that the client used to request a distribution connection.

ResolvedURL

Retrieves the URL of the content being streamed to the distribution connection.

Status

Retrieves the status of the client.

UserName

Retrieves the authenticated name of the client.

WrapperPlaylist

Retrieves the client's wrapper playlist object.

Example

The following example illustrates how to retrieve an IWMSOutgoingDistributionConnection object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Connections As IWMSOutgoingDistributionConnections
    Dim Connection As IWMSOutgoingDistributionConnection
    Dim i As Integer

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

    ' Retrieve the IWMSOutgoingDistributionConnections object.
    Connections = Server.OutgoingDistributionConnections

    ' Retrieve information about each distribution connection.
    For i = 0 To Connections.Count - 1
        Connection = Connections.Item(i)
    Next i

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

IWMSOutgoingDistributionConnections Object (Visual Basic .NET)

Concepts

Server Object Model (Visual Basic .NET)