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

适用于