D3DImage::TryLock Method (Duration)
.NET Framework (current version)
Attempts to lock the D3DImage and waits for the specified duration.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- timeout
-
Type:
System.Windows::Duration
The duration to wait for the lock to be acquired.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | timeout is set to Automatic. |
| InvalidOperationException | The lock count equals MaxValue. |
.NET Framework
Available since 3.0
Available since 3.0
Show: