Compartir a través de


AsyncReaderWriterLock.CanCurrentThreadHoldActiveLock Propiedad

Definición

Obtiene un valor que indica si el subproceso actual puede contener un bloqueo activo.

protected:
 virtual property bool CanCurrentThreadHoldActiveLock { bool get(); };
protected:
 virtual property bool CanCurrentThreadHoldActiveLock { bool get(); };
protected virtual bool CanCurrentThreadHoldActiveLock { get; }
member this.CanCurrentThreadHoldActiveLock : bool
Protected Overridable ReadOnly Property CanCurrentThreadHoldActiveLock As Boolean

Valor de propiedad

Comentarios

La implementación predeterminada de esta propiedad devuelve true cuando el subproceso que realiza la llamada NO es un subproceso STA. Esta propiedad se puede invalidar para devolver false en subprocesos que puedan poner en peligro la integridad del bloqueo.

Se aplica a