MonobjcMonobjc Documented Class Library
ExpressionForFetchContextCountOnly Method (fetch, context, countFlag)
NamespacesMonobjc.CoreDataNSFetchRequestExpressionExpressionForFetchContextCountOnly(NSExpression, NSExpression, Boolean)

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.

Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
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.
Return Value
An expression which will evaluate to the result of executing a fetch request (from fetch) on a managed object context (from context).
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)