ReadOnlyLinkedElementCollection<T>.TrueForAll Method
Checks if a given condition is true for all elements in the collection.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣言
Public Function TrueForAll ( _
match As Predicate(Of T) _
) As Boolean
public bool TrueForAll(
Predicate<T> match
)
public:
bool TrueForAll(
Predicate<T>^ match
)
member TrueForAll :
match:Predicate<'T> -> bool
public function TrueForAll(
match : Predicate<T>
) : boolean
Parameters
- match
Type: System.Predicate<T>
The condition to check.
Return Value
Type: System.Boolean
true if the predicate returned true for all elements or if the collection is empty; 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.