ButtonBase.CommandParameter 屬性

定義

取得或設定要傳遞至 Command 屬性的參數。

public:
 property Platform::Object ^ CommandParameter { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable CommandParameter();

void CommandParameter(IInspectable value);
public object CommandParameter { get; set; }
var object = buttonBase.commandParameter;
buttonBase.commandParameter = object;
Public Property CommandParameter As Object
<button>
  <button.CommandParameter>
    object
  </button.CommandParameter>
</button>
- or -
<button CommandParameter="objectAsString"/>

屬性值

Object

Platform::Object

IInspectable

要傳遞至 Command 屬性的參數。 預設值是 null。

適用於