Share via


NSManagedObjectContext.CountForFetchRequest(NSFetchRequest, NSError) Method

Definition

Returns the number of objects that request would return if it were run.

[Foundation.Export("countForFetchRequest:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIntPtr CountForFetchRequest(CoreData.NSFetchRequest request, out Foundation.NSError error);
[<Foundation.Export("countForFetchRequest:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CountForFetchRequest : CoreData.NSFetchRequest * NSError -> unativeint
override this.CountForFetchRequest : CoreData.NSFetchRequest * NSError -> unativeint

Parameters

request
NSFetchRequest
error
NSError

Returns

UIntPtr

unativeint

Attributes

Applies to