Share via


Modality.BeginDisconnect Method

Disconnects from the modality.

Namespace:  Microsoft.Lync.Model.Conversation
Assembly:  Microsoft.Lync.Model (in Microsoft.Lync.Model.dll)

Syntax

'Declaration
Public Function BeginDisconnect ( _
    reason As ModalityDisconnectReason, _
    modalityCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As Modality
Dim reason As ModalityDisconnectReason
Dim modalityCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginDisconnect(reason, _
    modalityCallback, state)
public IAsyncResult BeginDisconnect(
    ModalityDisconnectReason reason,
    AsyncCallback modalityCallback,
    Object state
)

Parameters

Return Value

Type: System.IAsyncResult

Remarks

Unless the conversation property AutoTerminateOnIdle is set to false, the parent Conversation object of a modality is terminated when the last active modality is disconnected. You cannot access properties on the terminated conversation.

See Also

Reference

Modality Class

Modality Members

Microsoft.Lync.Model.Conversation Namespace