Share via

LogicalOperations.Forall Method

Indicates whether a predicate is true for all elements of a collection.

Namespace: Microsoft.Modeling
Assembly: Microsoft.Xrt.Runtime (in Microsoft.Xrt.Runtime.dll)




public static bool Forall<T> (
    IEnumerable<T> enumerable,
    Predicate<T> predicate


  • T
    The type of elements in the collection.


  • enumerable
    The collection against which the predicate is evaluated.
  • predicate
    The function used to evaluate elements of the collection.

Return Value

true if all elements of enumerable satisfy predicate; otherwise, false.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Development Platforms

Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP SP2 or later, Microsoft Windows Server 2008, Microsoft Windows Server 2003

See Also


LogicalOperations Class
LogicalOperations Members
Microsoft.Modeling Namespace
LogicalOperations.Exists Method