ParseObject ClassParse
The ParseObject is a local representation of data that can be saved and retrieved from the Parse cloud.
Inheritance Hierarchy

SystemObject
  ParseParseObject
    ParseParseInstallation
    ParseParseRole
    ParseParseSession
    ParseParseUser

Namespace: Parse
Assembly: Parse (in Parse.dll) Version: 1.5.5.0 (1.5.5.0)
Syntax

public class ParseObject : IEnumerable<KeyValuePair<string, Object>>, 
	IEnumerable, INotifyPropertyChanged

The ParseObject type exposes the following members.

Constructors

  NameDescription
Protected methodParseObject
Constructor for use in ParseObject subclasses. Subclasses must specify a ParseClassName attribute.
Public methodParseObject(String)
Constructs a new ParseObject with no data in it. A ParseObject constructed in this way will not have an ObjectId and will not persist to the database until SaveAsync is called.
Top
Properties

  NameDescription
Public propertyACL
Gets or sets the ParseACL governing this object.
Public propertyClassName
Gets the class name for the ParseObject.
Public propertyCreatedAt
Gets the first time this object was saved as the server sees it, so that if you create a ParseObject, then wait a while, and then call SaveAsync, the creation time will be the time of the first SaveAsync call rather than the time the object was created locally.
Public propertyIsDataAvailable
Gets whether the ParseObject has been fetched.
Public propertyIsDirty
Indicates whether this ParseObject has unsaved changes.
Public propertyIsNew
Returns true if this object was created by the Parse server when the object might have already been there (e.g. in the case of a Facebook login)
Public propertyItem
Gets or sets a value on the object. It is recommended to name keys in partialCamelCaseLikeThis.
Public propertyKeys
Gets a set view of the keys contained in this object. This does not include createdAt, updatedAt, or objectId. It does include things like username and ACL.
Public propertyObjectId
Gets or sets the object id. An object id is assigned as soon as an object is saved to the server. The combination of a ClassName and an ObjectId uniquely identifies an object in your application.
Public propertyUpdatedAt
Gets the last time this object was updated as the server sees it, so that if you make changes to a ParseObject, then wait a while, and then call SaveAsync, the updated time will be the time of the SaveAsync call rather than the time the object was changed locally.
Top
Methods

  NameDescription
Public methodAdd
Adds a value for the given key, throwing an Exception if the key already has a value.
Public methodAddRangeToListT
Atomically adds objects to the end of the list associated with the given key.
Public methodAddRangeUniqueToListT
Atomically adds objects to the end of the list associated with the given key, only if they are not already present in the list. The position of the inserts are not guaranteed.
Public methodAddToList
Atomically adds an object to the end of the list associated with the given key.
Public methodAddUniqueToList
Atomically adds an object to the end of the list associated with the given key, only if it is not already present in the list. The position of the insert is not guaranteed.
Public methodContainsKey
Returns whether this object has a particular key.
Public methodStatic memberCreate(String)
Creates a new ParseObject based upon a class name. If the class name is a special type (e.g. for ParseUser), then the appropriate type of ParseObject is returned.
Public methodStatic memberCreateT
Creates a new ParseObject based upon a given subclass type.
Public methodStatic memberCreateWithoutData(String, String)
Creates a reference to an existing ParseObject for use in creating associations between ParseObjects. Calling IsDataAvailable on this object will return false until FetchIfNeededAsyncT(T) has been called. No network request will be made.
Public methodStatic memberCreateWithoutDataT(String)
Creates a reference to an existing ParseObject for use in creating associations between ParseObjects. Calling IsDataAvailable on this object will return false until FetchIfNeededAsyncT(T) has been called. No network request will be made.
Public methodStatic memberDeleteAllAsyncT(IEnumerableT)
Deletes each object in the provided list.
Public methodStatic memberDeleteAllAsyncT(IEnumerableT, CancellationToken)
Deletes each object in the provided list.
Public methodDeleteAsync
Deletes this object on the server.
Public methodDeleteAsync(CancellationToken)
Deletes this object on the server.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodStatic memberFetchAllAsyncT(IEnumerableT)
Fetches all of the objects in the provided list.
Public methodStatic memberFetchAllAsyncT(IEnumerableT, CancellationToken)
Fetches all of the objects in the provided list.
Public methodStatic memberFetchAllIfNeededAsyncT(IEnumerableT)
Fetches all of the objects that don't have data in the provided list.
Public methodStatic memberFetchAllIfNeededAsyncT(IEnumerableT, CancellationToken)
Fetches all of the objects that don't have data in the provided list.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetT
Gets a value for the key of a particular type. The type to convert the value to. Supported types are ParseObject and its descendents, Parse types such as ParseRelation and ParseGeopoint, primitive types,IList<T>, IDictionary<string, T>, and strings.The key of the element to get.The property is retrieved and key is not found.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetPropertyT(String)
Gets the value of a property based upon its associated ParseFieldName attribute.
Protected methodGetPropertyT(T, String)
Gets the value of a property based upon its associated ParseFieldName attribute.
Public methodStatic memberGetQuery
Public methodGetRelationT
Access or create a Relation value for a key.
Protected methodGetRelationPropertyT
Gets a relation for a property based upon its associated ParseFieldName attribute.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasSameId
A helper function for checking whether two ParseObjects point to the same object in the cloud.
Public methodIncrement(String)
Atomically increments the given key by 1.
Public methodIncrement(String, Double)
Atomically increments the given key by the given number.
Public methodIncrement(String, Int64)
Atomically increments the given key by the given number.
Public methodIsKeyDirty
Indicates whether key is unsaved for this ParseObject.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnFieldsChanged
Raises change notifications for all properties associated with the given field names. If fieldNames is null, this will notify for all known field-linked properties (e.g. this happens when we recalculate all estimated data from scratch)
Protected methodOnPropertyChanged
Raises change notifications for a property. Passing null or the empty string notifies the binding framework that all properties/indexes have changed. Passing "Item[]" tells the binding framework that all indexed values have changed (but not all properties)
Public methodStatic memberRegisterSubclassT
Registers a custom subclass type with the Parse SDK, enabling strong-typing of those ParseObjects whenever they appear. Subclasses must specify the ParseClassName attribute, have a default constructor, and properties backed by ParseObject fields should have ParseFieldName attributes supplied.
Public methodRemove
Removes a key from the object's data if it exists.
Public methodRemoveAllFromListT
Atomically removes all instances of the objects in values from the list associated with the given key.
Public methodRevert
Clears any changes to this object made since the last call to SaveAsync.
Public methodStatic memberSaveAllAsyncT(IEnumerableT)
Saves each object in the provided list.
Public methodStatic memberSaveAllAsyncT(IEnumerableT, CancellationToken)
Saves each object in the provided list.
Public methodSaveAsync
Saves this object to the server.
Public methodSaveAsync(CancellationToken)
Saves this object to the server.
Protected methodSetPropertyT
Sets the value of a property based upon its associated ParseFieldName attribute.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValueT
Populates result with the value for the key, if possible.
Top
Events

  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
Top
Remarks

The basic workflow for creating new data is to construct a new ParseObject, use the indexer to fill it with data, and then use SaveAsync() to persist to the database.

The basic workflow for accessing existing data is to use a ParseQuery to specify which existing data to retrieve.

See Also

Reference