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
ParseParseObject
ParseParseRole
Namespace: Parse
Assembly: Parse (in Parse.dll) Version: 1.5.5.0 (1.5.5.0)
Syntax
The ParseRole type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ParseRole |
Constructs a new ParseRole. You must assign a name and ACL to the role.
| |
ParseRole(String, ParseACL) |
Constructs a new ParseRole with the given name.
|
Properties
Name | Description | |
---|---|---|
ACL |
Gets or sets the ParseACL governing this object.
(Inherited from ParseObject.) | |
ClassName |
Gets the class name for the ParseObject.
(Inherited from ParseObject.) | |
CreatedAt |
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.) | |
IsDataAvailable |
Gets whether the ParseObject has been fetched.
(Inherited from ParseObject.) | |
IsDirty |
Indicates whether this ParseObject has unsaved changes.
(Inherited from ParseObject.) | |
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)
(Inherited from ParseObject.) | |
Item |
Gets or sets a value on the object. It is recommended to name
keys in partialCamelCaseLikeThis.
(Inherited from ParseObject.) | |
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.
(Inherited from ParseObject.) | |
Name |
Gets the name of the role.
| |
ObjectId |
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.) | |
Query |
Gets a ParseQueryT over the Role collection.
| |
Roles |
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.
| |
UpdatedAt |
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.) | |
Users |
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.
|
Methods
Name | Description | |
---|---|---|
Add |
Adds a value for the given key, throwing an Exception if the key
already has a value.
(Inherited from ParseObject.) | |
AddRangeToListT |
Atomically adds objects to the end of the list associated with the given key.
(Inherited from ParseObject.) | |
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.
(Inherited from ParseObject.) | |
AddToList |
Atomically adds an object to the end of the list associated with the given key.
(Inherited from ParseObject.) | |
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.
(Inherited from ParseObject.) | |
ContainsKey |
Returns whether this object has a particular key.
(Inherited from ParseObject.) | |
DeleteAsync |
Deletes this object on the server.
(Inherited from ParseObject.) | |
DeleteAsync(CancellationToken) |
Deletes this object on the server.
(Inherited from ParseObject.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
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. (Inherited from ParseObject.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetPropertyT(String) |
Gets the value of a property based upon its associated ParseFieldName attribute.
(Inherited from ParseObject.) | |
GetPropertyT(T, String) |
Gets the value of a property based upon its associated ParseFieldName attribute.
(Inherited from ParseObject.) | |
GetRelationT |
Access or create a Relation value for a key.
(Inherited from ParseObject.) | |
GetRelationPropertyT |
Gets a relation for a property based upon its associated ParseFieldName attribute.
(Inherited from ParseObject.) | |
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.
(Inherited from ParseObject.) | |
Increment(String) |
Atomically increments the given key by 1.
(Inherited from ParseObject.) | |
Increment(String, Double) |
Atomically increments the given key by the given number.
(Inherited from ParseObject.) | |
Increment(String, Int64) |
Atomically increments the given key by the given number.
(Inherited from ParseObject.) | |
IsKeyDirty |
Indicates whether key is unsaved for this ParseObject.
(Inherited from 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)
(Inherited from ParseObject.) | |
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)
(Inherited from ParseObject.) | |
Remove |
Removes a key from the object's data if it exists.
(Inherited from ParseObject.) | |
RemoveAllFromListT |
Atomically removes all instances of the objects in values
from the list associated with the given key.
(Inherited from ParseObject.) | |
Revert |
Clears any changes to this object made since the last call to SaveAsync.
(Inherited from ParseObject.) | |
SaveAsync |
Saves this object to the server.
(Inherited from ParseObject.) | |
SaveAsync(CancellationToken) |
Saves this object to the server.
(Inherited from ParseObject.) | |
SetPropertyT |
Sets the value of a property based upon its associated ParseFieldName attribute.
(Inherited from ParseObject.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValueT |
Populates result with the value for the key, if possible.
(Inherited from ParseObject.) |
Events
Name | Description | |
---|---|---|
PropertyChanged |
Occurs when a property value changes.
(Inherited from ParseObject.) |
See Also