IWMSServerLimits.PlayerAcknowledgementTimeout (C#)
Previous | Next |
IWMSServerLimits.PlayerAcknowledgementTimeout (C#)
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 = int; int = IWMSServerLimits.PlayerAcknowledgementTimeout;
Property Value
int containing the time, in seconds.
If this property fails, it throws an exception.
Number | Description |
0x80070057 | int is an invalid argument. |
Remarks
The value zero is not valid for the return value. The default value is 60 seconds.
Example Code
using Microsoft.WindowsMediaServices.Interop; using System.Runtime.InteropServices; // Retrieve the IWMSServerLimits object for the server. ServerLimits = Server.Limits; // Retrieve the maximum amount of time a client // has between requests before being disconnected. iValue = ServerLimits.PlayerAcknowledgementTimeout; // Set the maximum amount of time a client // has between requests before being disconnected. ServerLimits.PlayerAcknowledgementTimeout = 3000; } catch (COMException comExc) { // TODO: Handle COM exceptions. } catch (Exception e) { // TODO: Handle exceptions. }
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 |