Reference Library
StopApplicationSession Method (reason, userState)
NamespacesAvaya.ApplicationEnablement.DMCCServiceProviderStopApplicationSession(String, Object)
Sends a Stop ApplicationSession XML message to the server. If Devices have objects that are registered the API will attempt to unregister them BEFORE sending this message. In general, the application should have unregistered all devices (and processed the unregistration response) BEFORE invoking this method.
Declaration Syntax
C#Visual BasicVisual C++
public int StopApplicationSession(
	string reason,
	Object userState
)
Public Function StopApplicationSession ( _
	reason As String, _
	userState As Object _
) As Integer
public:
virtual int StopApplicationSession(
	String^ reason, 
	Object^ userState
) sealed
Parameters
reason (String)
/// The reason the session is being stopped.
userState (Object)
An object which will be returned to the application via the response to the XML message.
Return Value
The Invoke Id of the outgoing XML message.

Assembly: ServiceProvider (Module: ServiceProvider)