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 |
IWMSServer.Players (Visual Basic .NET)
The Players property retrieves an IWMSPlayers object containing a collection of IWMSPlayer objects. Each object in the collection contains specific information about a connected client.
Syntax
IWMSPlayers = IWMSServer.Players
Property Value
An IWMSPlayers collection.
Remarks
This property is read-only. Each IWMSPlayer object contains client information such as the IP address, the user name, and so on. For more information about the client information collected by the server, see the IWMSPlayer object.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub GetPlayers()
' Declare variables.
Dim Server As WMSServer
Dim Players As IWMSPlayers
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve a list of currently connected clients.
Players = Server.Players
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
- IWMSPlayer Object (Visual Basic .NET)
- IWMSPlayers Object (Visual Basic .NET)
- IWMSServer Object (Visual Basic .NET)
| Previous | Next |