在完成发送和接收信息的 LU2 连接后,必须通过调用 Microsoft.HostIntegration.SNA.Session.SessionDisplay.Disconnect%2A
来关闭连接。
关闭 LU2 连接
- 完成连接后,调用
SessionDisplay.Disconnect
断开连接。
示例:
下面的代码示例来自 Host Integration Server SDK 中的 3270 应用程序。
private void Disconnect_Click(object sender, EventArgs e)
{
// Disable every button and text box.
DisableEverything();
m_Handler.Disconnect();
// Go back to the original state of buttons.
SetOpeningState();
}