Class RemoveRequest<T>
Represents a request to remove an entity by id or a list of entities according to query.
Inheritance
System.Object
RemoveRequest<T>
Inherited Members
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public class RemoveRequest<T> : WriteRequest<T, KinveyDeleteResponse>
Type Parameters
Name | Description |
---|---|
T | The type of an entity. |
Constructors
| Improve this Doc View SourceRemoveRequest(IQueryable<Object>, AbstractClient, String, ICache<T>, ISyncQueue, WritePolicy)
Initializes a new instance of the RemoveRequest<T> class.
Declaration
public RemoveRequest(IQueryable<object> query, AbstractClient client, string collection, ICache<T> cache, ISyncQueue sync, WritePolicy policy)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<System.Object> | query | Query. |
AbstractClient | client | Client that the user is logged in. |
System.String | collection | Collection name. |
ICache<T> | cache | Cache. |
ISyncQueue | sync | Synchronization queue. |
WritePolicy | policy | Write policy. |
RemoveRequest(String, AbstractClient, String, ICache<T>, ISyncQueue, WritePolicy)
Initializes a new instance of the RemoveRequest<T> class.
Declaration
public RemoveRequest(string entityID, AbstractClient client, string collection, ICache<T> cache, ISyncQueue sync, WritePolicy policy)
Parameters
Type | Name | Description |
---|---|---|
System.String | entityID | Entity Id. |
AbstractClient | client | Client that the user is logged in. |
System.String | collection | Collection name. |
ICache<T> | cache | Cache. |
ISyncQueue | sync | Synchronization queue. |
WritePolicy | policy | Write policy. |
Methods
| Improve this Doc View SourceCancel()
Communicates the request for cancellation.
Declaration
public override Task<bool> Cancel()
Returns
Type | Description |
---|---|
Task<System.Boolean> | The async task with the boolean result. If the result is |
Overrides
Kinvey.Request<T, Kinvey.KinveyDeleteResponse>.Cancel()
|
Improve this Doc
View Source
ExecuteAsync()
Executes the request asynchronously.
Declaration
public override Task<KinveyDeleteResponse> ExecuteAsync()
Returns
Type | Description |
---|---|
Task<KinveyDeleteResponse> | The async task with the request result. |
Overrides
Kinvey.Request<T, Kinvey.KinveyDeleteResponse>.ExecuteAsync()