TimeLimit Method of the Win32_TSSessionSetting Class

The TimeLimit method sets the maximum time allocated to the specified session-limit type.

Syntax

MOF
uint32 TimeLimit(
  [in]  string SessionLimitType,
  [in]  uint32 ValueLimit
);

Parameters

SessionLimitType [in]

Specifies the type of session-limit property that the method is setting.

ValueMeaning
ActiveSessionLimit

The method is setting the ActiveSessionLimit property.

DisconnectedSessionLimit

The method is setting the DisconnectedSessionLimit property.

IdleSessionLimit

The method is setting the IdleSessionLimit property.

 

ValueLimit [in]

The new maximum time, in milliseconds, for the property specified by the SessionLimitType parameter. The value zero indicates that there is no session limit.

Return Value

Returns Success on success, otherwise returns a WMI error code. Refer to Remote Desktop Services WMI Provider Error Codes for a list of these values. The method returns an error if the setting is under group policy control.

Remarks

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Windows SDK. They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
MOFTscfgwmi.mof
DLLTscfgwmi.dll
Namespace\root\CIMV2\TerminalServices on Windows Vista and Windows Server 2008\root\CIMV2 on Windows XP and Windows Server 2003

See Also

Win32_TSSessionSetting

Send comments about this topic to Microsoft

Build date: 10/19/2009

Tags :


Page view tracker