Chili.Opf3 Send comments on this topic.
Exists Method
See Also 
Chili.Opf3 Namespace > Generic ObjectSet Class : Exists Method




match
The Predicate delegate that defines the conditions of the elements to search for.
Determines whether the ObjectSet contains elements that match the conditions defined by the specified predicate.

Syntax

Visual Basic (Declaration) 
Public Function Exists( _
   ByVal match As Predicate(Of T) _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ObjectSet(Of T)
Dim match As Predicate(Of T)
Dim value As Boolean
 
value = instance.Exists(match)
C# 
public bool Exists( 
   Predicate<T> match
)
Managed Extensions for C++ 
public: bool Exists( 
   Predicate<T>* match
) 
C++/CLI 
public:
bool Exists( 
   Predicate<T>^ match
) 

Parameters

match
The Predicate delegate that defines the conditions of the elements to search for.

Return Value

true, if the ObjectSet contains one or more elements that match the conditions defined by the specified predicate; otherwise, false.

Exceptions

ExceptionDescription
ArgumentNullExceptionMatch is null.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also