Task<(ForumResponse , ValidationResult )> AddParticipantsAsync(
Guid topicID,
IReadOnlyCollection<Guid> participants,
bool isReadOnly,
bool canEditMessages,
ParticipantType type = ParticipantType.Participant,
bool isSubscribed = false,
ForumServiceMessageMode serviceMessageMode = ForumServiceMessageMode.Enabled,
CancellationToken cancellationToken = default
)
Function AddParticipantsAsync (
topicID As Guid,
participants As IReadOnlyCollection(Of Guid),
isReadOnly As Boolean,
canEditMessages As Boolean,
Optional type As ParticipantType = ParticipantType.Participant,
Optional isSubscribed As Boolean = false,
Optional serviceMessageMode As ForumServiceMessageMode = ForumServiceMessageMode.Enabled,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ( As ForumResponse, As ValidationResult))
Task<ValueTuple<ForumResponse^, ValidationResult^>>^ AddParticipantsAsync(
Guid topicID,
IReadOnlyCollection<Guid>^ participants,
bool isReadOnly,
bool canEditMessages,
ParticipantType type = ParticipantType::Participant,
bool isSubscribed = false,
ForumServiceMessageMode serviceMessageMode = ForumServiceMessageMode::Enabled,
CancellationToken cancellationToken = CancellationToken()
)
abstract AddParticipantsAsync :
topicID : Guid *
participants : IReadOnlyCollection<Guid> *
isReadOnly : bool *
canEditMessages : bool *
?type : ParticipantType *
?isSubscribed : bool *
?serviceMessageMode : ForumServiceMessageMode *
?cancellationToken : CancellationToken
(* Defaults:
let _type = defaultArg type ParticipantType.Participant
let _isSubscribed = defaultArg isSubscribed false
let _serviceMessageMode = defaultArg serviceMessageMode ForumServiceMessageMode.Enabled
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<ForumResponse, ValidationResult>>
ForumResponse - ответ на запрос.
ValidationResult, содержащий информацию по возникшим ошибкам.