Returns an expression which will evaluate to the result of executing a fetch request on a context.
Original signature is '+ (NSExpression *)expressionForFetch:(NSExpression *)fetch context:(NSExpression *)context countOnly:(BOOL)countFlag'
Available in Mac OS X v10.5 and later.

C# | Visual Basic | Visual C++ |
public static NSExpression ExpressionForFetchContextCountOnly( NSExpression fetch, NSExpression context, bool countFlag )
Public Shared Function ExpressionForFetchContextCountOnly ( _ fetch As NSExpression, _ context As NSExpression, _ countFlag As Boolean _ ) As NSExpression
public: static NSExpression^ ExpressionForFetchContextCountOnly( NSExpression^ fetch, NSExpression^ context, bool countFlag )

- fetch (NSExpression)
- An expression that evaluates to an instance of NSFetchRequest.
- context (NSExpression)
- An expression that evaluates to an instance of NSManagedObjectContext.
- countFlag (Boolean)
- If YES, when the new expression is evaluated the managed object context (from context) will perform countForFetchRequest:error: with the fetch request (from fetch). If NO, when the new expression is evaluated the managed object context will perform executeFetchRequest:error: with the fetch request.

An expression which will evaluate to the result of executing a fetch request (from fetch) on a managed object context (from context).

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)