Share via


FormViewUpdateEventArgs.CommandArgument 屬性

定義

取得傳遞至 FormView 控制項的更新作業命令引數。

public:
 property System::Object ^ CommandArgument { System::Object ^ get(); };
public object CommandArgument { get; }
member this.CommandArgument : obj
Public ReadOnly Property CommandArgument As Object

屬性值

傳遞至 FormView 控制項的更新作業命令引數。

備註

當您在控制項中 FormView 建立其中一個範本的 [更新] 按鈕時,可以選擇性地使用 屬性指定按鈕的 IButtonControl.CommandArgument 命令引數。 命令引數通常包含您想要隨附更新命令的任何選擇性資訊,例如索引鍵欄位的值。 屬性 CommandArgument 會以方便的方式提供,以判斷 [更新] 按鈕命令引數的值。

適用於

另請參閱