Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IWMSPlayers.Refresh (Visual Basic .NET)
The Refresh method updates the list of IWMSPlayer objects in the IWMSPlayers collection to reflect the connected players.
Syntax
IWMSPlayers .Refresh()
Parameters
This method does not take any parameters.
Return Values
This method does not return a value.
Remarks
Call the Refresh method whenever the IWMSPlayers collection changes. For more information, see the IWMSPlayers.Remove and IWMSPlayers.RemoveAll methods.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub UpdateList()
' Declare variables.
Dim Server As WMSServer
Dim Players As IWMSPlayers
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the IWMSPlayers object.
Players = Server.Players
' Refresh the collection of current connections in
' case any states have changed.
Players.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
| Previous | Next |