END CONVERSATION
closes a dialog
What changes
- Input
- conversation handle
- Output or change
- conversation ended (optional error message to the other side)
Syntax at a glance
END CONVERSATION conversation_handle [ [ WITH ERROR = failure_code DESCRIPTION = 'failure_text' ] | [ WITH CLEANUP ] ] [ ; ]
Work example
A completed or failed broker dialog must be closed with the right outcome.
Check both endpoint handlers, queued messages, error code, and cleanup transaction before ending it.
Check your work The dialog leaves no unexpected pending messages and both services record its final state.
Open Microsoft Learn for full syntax, permissions, and details for your version.