The ParseObject is a local representation of data that can be saved and
retrieved from the Parse cloud.
Inheritance Hierarchy
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
Name | Description | |
---|---|---|
ParseObject |
Constructor for use in ParseObject subclasses. Subclasses must specify a ParseClassName attribute.
| |
ParseObject(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.
|
Properties
Name | Description | |
---|---|---|
ACL |
Gets or sets the ParseACL governing this object.
| |
ClassName |
Gets the class name for the ParseObject.
| |
CreatedAt | ||
IsDataAvailable |
Gets whether the ParseObject has been fetched.
| |
IsDirty |
Indicates whether this ParseObject has unsaved changes.
| |
IsNew |
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)
| |
Item |
Gets or sets a value on the object. It is recommended to name
keys in partialCamelCaseLikeThis.
| |
Keys |
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.
| |
ObjectId | ||
UpdatedAt |
Methods
Name | Description | |
---|---|---|
Add |
Adds a value for the given key, throwing an Exception if the key
already has a value.
| |
AddRangeToListT |
Atomically adds objects to the end of the list associated with the given key.
| |
AddRangeUniqueToListT |
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.
| |
AddToList |
Atomically adds an object to the end of the list associated with the given key.
| |
AddUniqueToList |
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.
| |
ContainsKey |
Returns whether this object has a particular key.
| |
Create(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.
| |
CreateT |
Creates a new ParseObject based upon a given subclass type.
| |
CreateWithoutData(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.
| |
CreateWithoutDataT(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.
| |
DeleteAllAsyncT(IEnumerableT) |
Deletes each object in the provided list.
| |
DeleteAllAsyncT(IEnumerableT, CancellationToken) |
Deletes each object in the provided list.
| |
DeleteAsync |
Deletes this object on the server.
| |
DeleteAsync(CancellationToken) |
Deletes this object on the server.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FetchAllAsyncT(IEnumerableT) |
Fetches all of the objects in the provided list.
| |
FetchAllAsyncT(IEnumerableT, CancellationToken) |
Fetches all of the objects in the provided list.
| |
FetchAllIfNeededAsyncT(IEnumerableT) |
Fetches all of the objects that don't have data in the provided list.
| |
FetchAllIfNeededAsyncT(IEnumerableT, CancellationToken) |
Fetches all of the objects that don't have data in the provided list.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetT |
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. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetPropertyT(String) |
Gets the value of a property based upon its associated ParseFieldName attribute.
| |
GetPropertyT(T, String) |
Gets the value of a property based upon its associated ParseFieldName attribute.
| |
GetQuery |
Gets a ParseQueryT for the type of object specified by
className | |
GetRelationT |
Access or create a Relation value for a key.
| |
GetRelationPropertyT |
Gets a relation for a property based upon its associated ParseFieldName attribute.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasSameId |
A helper function for checking whether two ParseObjects point to
the same object in the cloud.
| |
Increment(String) |
Atomically increments the given key by 1.
| |
Increment(String, Double) |
Atomically increments the given key by the given number.
| |
Increment(String, Int64) |
Atomically increments the given key by the given number.
| |
IsKeyDirty |
Indicates whether key is unsaved for this ParseObject.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnFieldsChanged |
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)
| |
OnPropertyChanged |
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)
| |
RegisterSubclassT |
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.
| |
Remove |
Removes a key from the object's data if it exists.
| |
RemoveAllFromListT |
Atomically removes all instances of the objects in values
from the list associated with the given key.
| |
Revert |
Clears any changes to this object made since the last call to SaveAsync.
| |
SaveAllAsyncT(IEnumerableT) |
Saves each object in the provided list.
| |
SaveAllAsyncT(IEnumerableT, CancellationToken) |
Saves each object in the provided list.
| |
SaveAsync |
Saves this object to the server.
| |
SaveAsync(CancellationToken) |
Saves this object to the server.
| |
SetPropertyT |
Sets the value of a property based upon its associated ParseFieldName attribute.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValueT |
Populates result with the value for the key, if possible.
|
Events
Name | Description | |
---|---|---|
PropertyChanged |
Occurs when a property value changes.
|
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