IWMSServerLimits.PlayerAcknowledgementTimeout (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSServerLimits.PlayerAcknowledgementTimeout (Visual Basic .NET)
The PlayerTimeout property specifies and retrieves the maximum length of time, in seconds, that a client is allowed to remain connected if the server has not received a client request.
Syntax
IWMSServerLimits .PlayerAcknowledgementTimeout = Integer Integer = IWMSServerLimits.PlayerAcknowledgementTimeout
Property Value
Integer containing the time, in seconds.
If this property fails, it returns an error number.
| Number | Description |
| 0x80070057 | Integer is an invalid argument. |
Remarks
The value zero is not valid for the return value. The default value is 60 seconds.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub GetSetTimeout()
' Declare variables.
Dim Server As WMSServer
Dim Limits As IWMSServerLimits
Dim iValue As Integer
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the IWMSServerLimits object for the server.
Limits = Server.Limits
' Retrieve the maximum amount of time a client
' has between requests before being disconnected.
iValue = Limits.PlayerAcknowledgementTimeout
' Set the maximum amount of time a client
' has between requests before being disconnected.
Limits.PlayerAcknowledgementTimeout = 3000
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 |