Export (0) Print
Expand All

D3DImage.TryLock Method

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

Namespace:  System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

'Declaration
Public Function TryLock ( _
	timeout As Duration _
) As Boolean

Parameters

timeout
Type: System.Windows.Duration

The duration to wait for the lock to be acquired.

Return Value

Type: System.Boolean
true if the lock was acquired; otherwise, false.

ExceptionCondition
ArgumentOutOfRangeException

timeout is set to Automatic.

InvalidOperationException

The lock count equals MaxValue.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1, 3.0 SP2

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft