Determines whether there is at least one element for which a given condition is true.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Function Exists ( _
match As Predicate(Of T) _
) As Boolean
'Usage
Dim instance As ReadOnlyLinkedElementCollection
Dim match As Predicate(Of T)
Dim returnValue As Boolean
returnValue = instance.Exists(match)
public bool Exists(
Predicate<T> match
)
public:
bool Exists(
Predicate<T>^ match
)
public function Exists(
match : Predicate<T>
) : boolean
Parameters
match
Type: System.Predicate<T>The condition to check.
Return Value
Type: System.Boolean
true if there is an element in the collection for which match parameter returns true; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ReadOnlyLinkedElementCollection<T> Class