IWMSOutgoingDistributionConnections.Refresh (Visual Basic .NET)
Previous | Next |
IWMSOutgoingDistributionConnections.Refresh (Visual Basic .NET)
The Refresh method updates the list of IWMSOutgoingDistributionConnection objects in the IWMSOutgoingDistributionConnections collection.
Syntax
IWMSOutgoingDistributionConnections .Refresh()
Parameters
This method does not take any parameters.
Return Values
This method does not return a value.
Remarks
You can use the Refresh method to update the IWMSOutgoingDistributionConnections collection after a client has been disconnected. For more information, see IWMSOutgoingDistributionConnection.Status.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub UpdateList() ' 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 ' Refresh the collection of distribution connections in ' case any states have changed. Connections.Refresh() 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
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices
Namespace: Microsoft.WindowsMediaServices.Interop
Assembly: Microsoft.WindowsMediaServices.dll
Library: WMSServerTypeLib.dll
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
- IWMSOutgoingDistributionConnection.Status (Visual Basic .NET)
- IWMSOutgoingDistributionConnections Object (Visual Basic .NET)
Previous | Next |