[This is preliminary documentation and is subject to change.]
Async version: Removes the parcel from the bank returning true if parcel was found and removed
Namespace: NFX.DataAccess.DistributedAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Task<bool> RemoveAsync<T>(
GDID id,
Object shardingID = null,
ISession session = null
)
where T : Parcel
Task<bool> RemoveAsync<T>(
GDID id,
Object shardingID = null,
ISession session = null
)
where T : Parcel
Function RemoveAsync(Of T As Parcel) (
id As GDID,
Optional shardingID As Object = Nothing,
Optional session As ISession = Nothing
) As Task(Of Boolean)
Function RemoveAsync(Of T As Parcel) (
id As GDID,
Optional shardingID As Object = Nothing,
Optional session As ISession = Nothing
) As Task(Of Boolean)
generic<typename T>
where T : Parcel
Task<bool>^ RemoveAsync(
GDID id,
Object^ shardingID = nullptr,
ISession^ session = nullptr
)
generic<typename T>
where T : Parcel
Task<bool>^ RemoveAsync(
GDID id,
Object^ shardingID = nullptr,
ISession^ session = nullptr
)
abstract RemoveAsync :
id : GDID *
?shardingID : Object *
?session : ISession
(* Defaults:
let _shardingID = defaultArg shardingID null
let _session = defaultArg session null
*)
-> Task<bool> when 'T : Parcel
abstract RemoveAsync :
id : GDID *
?shardingID : Object *
?session : ISession
(* Defaults:
let _shardingID = defaultArg shardingID null
let _session = defaultArg session null
*)
-> Task<bool> when 'T : Parcel
Parameters
- id
- Type: NFX.DataAccess.Distributed GDID
The unique GDID of the parcel
- shardingID (Optional)
- Type:
System Object
The ID of the entity used for sharding,
i.e. a message may use ID of the item that the message relates to, so messages get sharded in the same location as their "parent" record.
The parcel type T specifies the DataParcelAttirbute.ShardingParcel
- session (Optional)
- Type: NFX.ApplicationModel ISession
User session, if null session will be taken from execution context. The session may be needed for policy filtering
- T
Return Value
Type:
Task
Boolean