Message.GetLParam(Type) 方法

定義

取得 LParam 值,並將值轉換成物件。Gets the LParam value and converts the value to an object.

public:
 System::Object ^ GetLParam(Type ^ cls);
public object? GetLParam (Type cls);
public object GetLParam (Type cls);
member this.GetLParam : Type -> obj
Public Function GetLParam (cls As Type) As Object

參數

cls
Type

用來建立執行個體的型別。The type to use to create an instance. 這個型別必須已宣告為結構型別 (Structure Type)。This type must be declared as a structure type.

傳回

Object

Object,表示 cls 參數指定的類別執行個體,其中含有來自訊息的 LParam 欄位資料。An Object that represents an instance of the class specified by the cls parameter, with the data from the LParam field of the message.

備註

GetLParam 可以使用方法,從訊息的 LParam 欄位取出資訊,然後將它轉換成物件。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.

適用於