Share via


D3DImage.TryLock(Duration) Método

Definición

Intenta bloquear D3DImage y espera durante el tiempo especificado.

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

Parámetros

timeout
Duration

Tiempo de espera hasta que se realice el bloqueo.

Devoluciones

Es true si se realizó el bloqueo; de lo contrario, es false.

Excepciones

timeout se establece en Automatic.

El recuento de bloqueos es igual a UInt32.MaxValue.

Se aplica a

Consulte también