Visual Basic (Declaration) | |
---|---|
Public Shared Function Not(Of T)( _ ByVal expr As Expression(Of Func(Of T,Boolean)) _ ) As Expression(Of Func(Of T,Boolean)) |
Visual Basic (Usage) | ![]() |
---|---|
Dim expr As Expression(Of Func(Of T,Boolean)) Dim value As Expression(Of Func(Of T,Boolean)) value = PredicateBuilder.Not(Of T)(expr) |
C# | |
---|---|
public static Expression<Func<T,bool>> Not<T>( Expression<Func<T,bool>> expr ) |
C++/CLI | |
---|---|
public: static Expression<Func<T^,bool>^>^ Notgeneric<typename T> ( Expression<Func<T^,bool>^>^ expr ) |
Parameters
- expr
Type Parameters
- T
C# | ![]() |
---|---|
public void NotQuery() { var mgr = new DomainModelEntityManager(); Expression<Func<Customer, bool>> crit1 = c => c.Country.Equals("Mexico"); var finalcrit = PredicateBuilder.Not(crit1); var results = mgr.Customers.Where(finalcrit).ToList(); } |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family