Share via


Lock.TryEnter Methode

Definition

Überlädt

TryEnter()
TryEnter(Int32)
TryEnter(TimeSpan)

TryEnter()

Quelle:
Lock.cs
public:
 bool TryEnter();
public bool TryEnter ();
member this.TryEnter : unit -> bool
Public Function TryEnter () As Boolean

Gibt zurück

Gilt für:

TryEnter(Int32)

Quelle:
Lock.cs
public:
 bool TryEnter(int millisecondsTimeout);
public bool TryEnter (int millisecondsTimeout);
member this.TryEnter : int -> bool
Public Function TryEnter (millisecondsTimeout As Integer) As Boolean

Parameter

millisecondsTimeout
Int32

Gibt zurück

Gilt für:

TryEnter(TimeSpan)

Quelle:
Lock.cs
public:
 bool TryEnter(TimeSpan timeout);
public bool TryEnter (TimeSpan timeout);
member this.TryEnter : TimeSpan -> bool
Public Function TryEnter (timeout As TimeSpan) As Boolean

Parameter

timeout
TimeSpan

Gibt zurück

Gilt für: