FormViewUpdateEventArgs.CommandArgument 屬性

定義

取得傳遞至 FormView 控制項的更新作業命令引數。Gets the command argument for the update operation passed to the FormView control.

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

屬性值

Object

傳遞至 FormView 控制項的更新作業命令引數。The command argument for the update operation passed to the FormView control.

備註

當您為控制項中的其中一個範本建立 [更新] 按鈕時 FormView ,您可以選擇性地使用屬性指定按鈕的命令引數 IButtonControl.CommandArgumentWhen you create an Update button for one of the templates in a FormView control, you can optionally specify a command argument for the button by using the IButtonControl.CommandArgument property. 命令引數通常會包含您想要隨附于 update 命令的任何選擇性資訊,例如索引鍵欄位的值。The command argument usually contains any optional information you want to accompany the update command, such as the value for the key field. CommandArgument屬性是以方便的方式來判斷更新按鈕的命令引數值。The CommandArgument property is provided as a convenient way to determine the value of the Update button's command argument.

適用於

另請參閱