D3DImage.TryLock(Duration) 方法

定義

嘗試鎖定 D3DImage,並且依指定的期間等候鎖定進行。

public:
 bool TryLock(System::Windows::Duration timeout);
public bool TryLock (System.Windows.Duration timeout);
member this.TryLock : System.Windows.Duration -> bool
Public Function TryLock (timeout As Duration) As Boolean

參數

timeout
Duration

要取得鎖定所等候的期間。

傳回

如果已取得鎖定,則為 true;否則為 false

例外狀況

timeout 設定為 Automatic

適用於

另請參閱