NSManagedObjectContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A collection of related managed objects that create aninternally-consistent view of one or more persistent stores.
[Foundation.Register("NSManagedObjectContext", true)]
public class NSManagedObjectContext : Foundation.NSObject, Foundation.INSCoding, Foundation.INSLocking, IDisposable
[Foundation.Register("NSManagedObjectContext", true)]
public class NSManagedObjectContext : Foundation.NSObject, AppKit.INSEditor, AppKit.INSEditorRegistration, Foundation.INSCoding, Foundation.INSLocking, IDisposable
[Foundation.Register("NSManagedObjectContext", true)]
public class NSManagedObjectContext : Foundation.NSObject, Foundation.INSCoding, IDisposable
[<Foundation.Register("NSManagedObjectContext", true)>]
type NSManagedObjectContext = class
inherit NSObject
interface INSCoding
interface INativeObject
interface IDisposable
interface INSLocking
[<Foundation.Register("NSManagedObjectContext", true)>]
type NSManagedObjectContext = class
inherit NSObject
interface INSCoding
interface INativeObject
interface IDisposable
interface INSLocking
interface INSEditor
interface INSEditorRegistration
[<Foundation.Register("NSManagedObjectContext", true)>]
type NSManagedObjectContext = class
inherit NSObject
interface INSCoding
interface INativeObject
interface IDisposable
- Inheritance
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| NSManagedObjectContext() |
Default constructor that initializes a new instance of this class with no parameters. |
| NSManagedObjectContext(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| NSManagedObjectContext(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| NSManagedObjectContext(NSManagedObjectContextConcurrencyType) |
Creates a new NSManagedObjectContext of the specified type. |
| NSManagedObjectContext(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| AutomaticallyMergesChangesFromParent |
Gets or sets a Boolean that tells whether changes in the parent are automatically merged. |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| ConcurrencyType |
Gets the receiver's concurrency type. |
| DebugDescription | (Inherited from NSObject) |
| DeletedObjects |
Gets a set that contains the objects that will be deleted by the next save operation. |
| Description | (Inherited from NSObject) |
| DidMergeChangesObjectIdsNotification |
Notification constant for DidMergeChangesObjectIds |
| DidSaveNotification |
Notification constant for DidSave |
| DidSaveObjectIdsNotification |
Notification constant for DidSaveObjectIds |
| ExposedBindings | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| HasChanges |
Gets a Boolean value that tells whether the receiver has any unsaved changes. |
| InsertedObjects |
Gets the inserted, but unsaved, objects in the context. |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| MergePolicy |
Gets or sets the receiver's merge policy. |
| Name |
Gets or sets a name for the object. |
| ObjectsDidChangeNotification |
Notification constant for ObjectsDidChange |
| ParentContext |
Gets the receiver's parent context. |
| PersistentStoreCoordinator |
Gets the receiver's store coordinator. |
| PropagatesDeletesAtEndOfEvent |
Gets or sets a Boolean value that controls whether the receiver propagates deletes after change events. |
| QueryGenerationToken |
Gets the token that identifes the current query generation behavior. |
| RegisteredObjects |
Gets a set that contains all of the receiver's registered objects. |
| RetainCount | (Inherited from NSObject) |
| RetainsRegisteredObjects |
Gets or sets a Boolean value that controls whether the receiver retains hard references to its registered managed objects. |
| Self | (Inherited from NSObject) |
| ShouldDeleteInaccessibleFaults |
Gets or sets a Boolean value that controls whether inaccessible faults wil be deleted. |
| StalenessInterval |
Gets or sets the maximum elapsed time after fetching which causes fault fulfillment to fetch new data. |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| TransactionAuthor |
Gets or sets the author of the persistent history context. |
| TryLock | |
| UndoManager |
Gets the receiver's undo manager. |
| UpdatedObjects |
Gets a set that contains all of the receiver's objects which have uncommitted changes. |
| UserInfo |
Gets the receiver's user information. |
| WillSaveNotification |
Notification constant for WillSave |
| Zone | (Inherited from NSObject) |