Queue<T>.TryPeek(T) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
bool TryPeek([Runtime::InteropServices::Out] T % result);
public bool TryPeek(out T result);
member this.TryPeek : 'T -> bool
Public Function TryPeek (ByRef result As T) As Boolean
- result
- T
If present, the object at the beginning of the Queue<T>; otherwise, the default value of T
.
true
if there is an object at the beginning of the Queue<T>; false
if the Queue<T> is empty.
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: