ParseRole ClassParse
Represents a Role on the Parse server. ParseRoles represent groupings of ParseUsers for the purposes of granting permissions (e.g. specifying a ParseACL for a ParseObject. Roles are specified by their sets of child users and child roles, all of which are granted any permissions that the parent role has. Roles must have a name (that cannot be changed after creation of the role), and must specify an ACL.
Inheritance Hierarchy

SystemObject
  ParseParseObject
    ParseParseRole

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

public class ParseRole : ParseObject

The ParseRole type exposes the following members.

Constructors

  NameDescription
Public methodParseRole
Constructs a new ParseRole. You must assign a name and ACL to the role.
Public methodParseRole(String, ParseACL)
Constructs a new ParseRole with the given name.
Top
Properties

  NameDescription
Public propertyACL
Gets or sets the ParseACL governing this object.
(Inherited from ParseObject.)
Public propertyClassName
Gets the class name for the ParseObject.
(Inherited from 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.
(Inherited from ParseObject.)
Public propertyIsDataAvailable
Gets whether the ParseObject has been fetched.
(Inherited from ParseObject.)
Public propertyIsDirty
Indicates whether this ParseObject has unsaved changes.
(Inherited from ParseObject.)
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)
(Inherited from ParseObject.)
Public propertyItem
Gets or sets a value on the object. It is recommended to name keys in partialCamelCaseLikeThis.
(Inherited from ParseObject.)
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.
(Inherited from ParseObject.)
Public propertyName
Gets the name of the role.
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.
(Inherited from ParseObject.)
Public propertyStatic memberQuery
Public propertyRoles
Gets the ParseRelationT for the ParseRoles that are direct children of this role. These roles' users are granted any privileges that this role has been granted (e.g. read or write access through ACLs). You can add or remove child roles from the role through this relation.
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.
(Inherited from ParseObject.)
Public propertyUsers
Gets the ParseRelationT for the ParseUsers that are direct children of this role. These users are granted any privileges that this role has been granted (e.g. read or write access through ACLs). You can add or remove child users from the role through this relation.
Top
Methods

  NameDescription
Public methodAdd
Adds a value for the given key, throwing an Exception if the key already has a value.
(Inherited from ParseObject.)
Public methodAddRangeToListT
Atomically adds objects to the end of the list associated with the given key.
(Inherited from ParseObject.)
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.
(Inherited from ParseObject.)
Public methodAddToList
Atomically adds an object to the end of the list associated with the given key.
(Inherited from ParseObject.)
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.
(Inherited from ParseObject.)
Public methodContainsKey
Returns whether this object has a particular key.
(Inherited from ParseObject.)
Public methodDeleteAsync
Deletes this object on the server.
(Inherited from ParseObject.)
Public methodDeleteAsync(CancellationToken)
Deletes this object on the server.
(Inherited from ParseObject.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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.
(Inherited from ParseObject.)
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.
(Inherited from ParseObject.)
Protected methodGetPropertyT(T, String)
Gets the value of a property based upon its associated ParseFieldName attribute.
(Inherited from ParseObject.)
Public methodGetRelationT
Access or create a Relation value for a key.
(Inherited from ParseObject.)
Protected methodGetRelationPropertyT
Gets a relation for a property based upon its associated ParseFieldName attribute.
(Inherited from ParseObject.)
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.
(Inherited from ParseObject.)
Public methodIncrement(String)
Atomically increments the given key by 1.
(Inherited from ParseObject.)
Public methodIncrement(String, Double)
Atomically increments the given key by the given number.
(Inherited from ParseObject.)
Public methodIncrement(String, Int64)
Atomically increments the given key by the given number.
(Inherited from ParseObject.)
Public methodIsKeyDirty
Indicates whether key is unsaved for this ParseObject.
(Inherited from 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)
(Inherited from ParseObject.)
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)
(Inherited from ParseObject.)
Public methodRemove
Removes a key from the object's data if it exists.
(Inherited from ParseObject.)
Public methodRemoveAllFromListT
Atomically removes all instances of the objects in values from the list associated with the given key.
(Inherited from ParseObject.)
Public methodRevert
Clears any changes to this object made since the last call to SaveAsync.
(Inherited from ParseObject.)
Public methodSaveAsync
Saves this object to the server.
(Inherited from ParseObject.)
Public methodSaveAsync(CancellationToken)
Saves this object to the server.
(Inherited from ParseObject.)
Protected methodSetPropertyT
Sets the value of a property based upon its associated ParseFieldName attribute.
(Inherited from ParseObject.)
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.
(Inherited from ParseObject.)
Top
Events

  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from ParseObject.)
Top
See Also

Reference