Threading Threading
Threading Threading
DocFX + Singulink = ♥

Search Results for

    Method TryEnterUpgradeableReadGuard

    TryEnterUpgradeableReadGuard(int)

    Tries to enter the lock in upgradeable read mode within the given timeout, returning a guard whose IsEntered property indicates whether the lock was entered. Disposal releases the lock, or is a no-op if the lock was not entered.

    Declaration
    public UpgradeableReadGuard TryEnterUpgradeableReadGuard(int millisecondsTimeout)
    Parameters
    Type Name Description
    int millisecondsTimeout

    The number of milliseconds to wait, or Infinite (-1) to wait indefinitely.

    Returns
    Type Description
    UpgradeableReadGuard

    TryEnterUpgradeableReadGuard(TimeSpan)

    Tries to enter the lock in upgradeable read mode within the given timeout, returning a guard whose IsEntered property indicates whether the lock was entered. Disposal releases the lock, or is a no-op if the lock was not entered.

    Declaration
    public UpgradeableReadGuard TryEnterUpgradeableReadGuard(TimeSpan timeout)
    Parameters
    Type Name Description
    TimeSpan timeout

    The amount of time to wait, or InfiniteTimeSpan to wait indefinitely.

    Returns
    Type Description
    UpgradeableReadGuard
    © Singulink. All rights reserved.