D3DImage.TryLock(Duration) Method

Definition

Attempts to lock the D3DImage and waits for the specified duration.

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

Parameters

timeout
Duration

The duration to wait for the lock to be acquired.

Returns

true if the lock was acquired; otherwise, false.

Exceptions

Applies to

See also