SoundPlayer.LoadTimeout 屬性

定義

取得或設定時間,以毫秒為單位,表示 .wav 檔載入所須的時間。

public:
 property int LoadTimeout { int get(); void set(int value); };
public int LoadTimeout { get; set; }
member this.LoadTimeout : int with get, set
Public Property LoadTimeout As Integer

屬性值

Int32

要等候的毫秒數。 預設值為 10000 (10 秒)。

備註

此時間過期之後,就會取消載入,並 TimeoutException 擲回例外狀況。

適用於

另請參閱