共用方式為


ContentDialog.CloseButtonCommandParameter 屬性

定義

取得或設定參數,以傳遞至關閉按鈕的命令。

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

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

屬性值

Object

Platform::Object

IInspectable

要傳遞給關閉按鈕命令的參數。 預設值為 null。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於