共用方式為


ContentDialog.PrimaryButtonCommandParameter 屬性

定義

取得或設定要傳遞至主要按鈕之命令的參數。

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

void PrimaryButtonCommandParameter(IInspectable value);
public object PrimaryButtonCommandParameter { get; set; }
var object = contentDialog.primaryButtonCommandParameter;
contentDialog.primaryButtonCommandParameter = object;
Public Property PrimaryButtonCommandParameter As Object
<ContentDialog>
  <ContentDialog.PrimaryButtonCommandParameter>
    object
  </ContentDialog.PrimaryButtonCommandParameter>
</ContentDialog>
- or -
<ContentDialog PrimaryButtonCommandParameter="objectAsString"/>

屬性值

Object

Platform::Object

IInspectable

要傳遞至主要按鈕之命令的參數。 預設值是 null。

適用於