Gets the LParam value and converts the value to an object.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Syntax . . :: . Object
An Object that represents an instance of the class specified by the cls parameter, with the data from the LParam field of the message.
Public Function GetLParam ( _
cls As Type _
) As Objectpublic Object GetLParam(
Type cls
)public:
Object^ GetLParam(
Type^ cls
)member GetLParam :
cls:Type -> Object
Parameters
- cls
- Type: System
. . :: . Type
The type to use to create an instance. This type must be declared as a structure type.
Return Value
Type: SystemAn Object that represents an instance of the class specified by the cls parameter, with the data from the LParam field of the message.
Remarks
Use the GetLParam method to retrieve information from the LParam field of a message and convert it to an object. You can use this method to access objects passed in a message.
Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.