다음을 통해 공유


Conversations.DeleteConversationMemberWithHttpMessagesAsync 메서드

정의

DeleteConversationMember.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse> DeleteConversationMemberWithHttpMessagesAsync(string conversationId, string memberId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteConversationMemberWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse>
override this.DeleteConversationMemberWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse>
Public Function DeleteConversationMemberWithHttpMessagesAsync (conversationId As String, memberId As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse)

매개 변수

conversationId
String

대화 ID입니다.

memberId
String

이 대화에서 삭제할 멤버의 ID입니다.

customHeaders
Dictionary<String,List<String>>

요청에 추가될 헤더입니다.

cancellationToken
CancellationToken

취소 토큰입니다.

반환

Task<Microsoft.Rest.HttpOperationResponse>

응답 본문 및 응답 헤더를 포함하는 응답 개체입니다.

구현

예외

작업이 잘못된 상태 코드를 반환할 때 throw됩니다.

Microsoft.Rest.ValidationException

입력 값이 예상 데이터 형식, 범위 또는 패턴과 일치하지 않을 때 throw됩니다.

필수 매개 변수가 null이면 throw됩니다.

설명

대화에서 멤버를 삭제합니다.

이 REST API는 ConversationId 및 memberId(문자열 형식)를 사용하여 대화에서 해당 멤버를 제거합니다. 해당 멤버가 대화의 마지막 멤버인 경우 대화도 삭제됩니다.

적용 대상