Share via


NSPersistentContainer.ViewContext Property

Definition

Gets the managed object context for the main queue.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreData.NSManagedObjectContext ViewContext { [Foundation.Export("viewContext", ObjCRuntime.ArgumentSemantic.Strong)] get; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("viewContext", ObjCRuntime.ArgumentSemantic.Strong)>]
member this.ViewContext : CoreData.NSManagedObjectContext

Property Value

The managed object context for the main queue.

Attributes

Applies to