ReadOnlyLinkedElementCollection<T>.TrueForAll(Predicate<T>) 方法

定義

如果集合中的所有元素的指定條件為 true,則 Retursn true。Retursn true if a given condition is true for all elements in collection.

public:
 bool TrueForAll(Predicate<T> ^ match);
public bool TrueForAll (Predicate<T> match);
member this.TrueForAll : Predicate<'T (requires 'T :> Microsoft.VisualStudio.Modeling.ModelElement)> -> bool
Public Function TrueForAll (match As Predicate(Of T)) As Boolean

參數

match
Predicate<T>

條件。Condition.

傳回

Boolean

如果述詞針對所有元素傳回 true,或如果集合是空的,則為 true。True if predicate returned true for all elements or if collection is empty.

適用於