CSharpTest.Net
TryDequeue(Predicate<KeyValuePair<TKey,TValue>>,KeyValuePair<TKey,TValue>) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > LurchTable<TKey,TValue> Class > TryDequeue Method : TryDequeue(Predicate<KeyValuePair<TKey,TValue>>,KeyValuePair<TKey,TValue>) Method

predicate
value

Glossary Item Box

Removes the oldest entry in the collection based on the ordering supplied to the constructor.

Syntax

Visual Basic (Declaration) 
Public Overloads Function TryDequeue( _
   ByVal predicate As Predicate(Of KeyValuePair(Of TKey,TValue)), _
   ByRef value As KeyValuePair(Of TKey,TValue) _
) As Boolean

Parameters

predicate
value

Return Value

False if no item was available

Exceptions

ExceptionDescription
System.InvalidOperationExceptionRaised if the table is unordered
System.ObjectDisposedExceptionThe exception that is thrown when an operation is performed on a disposed object.
LurchTableCorruptionExceptionException class: LurchTableCorruptionException The LurchTable internal datastructure appears to be corrupted.

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys