共用方式為


SystemSound.PlayAlertSound 方法

定義

多載

PlayAlertSound()

播放音效或警示。

PlayAlertSound(Action)

播放音效或警示,然後呼叫 處理常式。

PlayAlertSound()

播放音效或警示。

public void PlayAlertSound ();
member this.PlayAlertSound : unit -> unit

備註

此方法的實際行為取決於裝置 (iPhone、iPod touch) 和震動設定。

適用於

PlayAlertSound(Action)

播放音效或警示,然後呼叫 處理常式。

public void PlayAlertSound (Action onCompletion);
member this.PlayAlertSound : Action -> unit

參數

onCompletion
Action

適用於