会话集成器编程接口

会话集成器提供 COM 和 .NET Framework 接口,以使用 LU0 和 LU2 协议授予对 SNA 网络的编程访问权限。 下表描述了 COM 与 .NET Framework 接口之间的关系。

LU0 接口

COM .NET 说明
IcomLU0 Microsoft.HostIntegration.SNA.Session.SessionLU0 用于通过 LU0 会话连接、发送和接收信息的主接口。
Microsoft.HostIntegration.SNA.Session.SessionConnectionLU0 表示 LU0 连接。

SessionLU0 使用 SessionConnectionLU0 包含相关的连接和初始化信息。
Microsoft.HostIntegration.SNA.Session.SessionLU0Data 封装要通过 LU0 发送和接收的信息。

SessionLU0SessionLU0DataReceive 方法中使用 Send 来发送和接收数据。
Microsoft.HostIntegration.SNA.Session.SessionLU0InitType 包含初始化信息。

SessionLU0 在初始化过程中使用此类将初始化信息传递给主机。
Microsoft.HostIntegration.SNA.Session.SessionLU0ReceiveIndication 表示与接收调用关联的会话的当前状态。
Microsoft.HostIntegration.SNA.Session.SessionLU0SendIndication 包含 的 Send 方法 SessionLU0使用的值。

LU2 接口

COM .NET 说明
Microsoft.HostIntegration.SNA.Session.SessionDisplay 为 类提供连接接口 SessionDisplay
Microsoft.HostIntegration.SNA.Session.ScreenPosition 提供对 LU2 屏幕上位置的访问。
Microsoft.HostIntegration.SNA.Session.ScreenCursor 提供对屏幕上光标的访问。
Microsoft.HostIntegration.SNA.Session.ScreenPartialField 提供对屏幕字段的一部分的访问权限。
Microsoft.HostIntegration.SNA.Session.ScreenField 提供对 LU2 屏幕的特定区域(包括数据和属性)的访问。
Microsoft.HostIntegration.SNA.Session.ScreenFieldCollection 包含类的 ScreenField 集合。
Microsoft.HostIntegration.SNA.Session.ScreenPartialFieldCollection 包含类的 ScreenPartialFields 集合。
Microsoft.HostIntegration.SNA.Session.ScreenFieldAttributeData 提供有关数据的所有属性 ScreenField
Icom3270 Microsoft.HostIntegration.SNA.Session.SessionDisplay 用于通过 3270 连接访问网络的主接口。
Microsoft.HostIntegration.SNA.Session.ScreenData 提供对原始 3270 数据表示形式的特定区域的访问权限。
Microsoft.HostIntegration.SNA.Session.SessionDisplayScript 使用户能够采用在 Host Integration Server 3270 客户端中创建的脚本,然后以编程方式播放该脚本。
Microsoft.HostIntegration.SNA.Session.SessionDisplayVariableCollection 与 类一 SessionDisplayScript 起使用,以提供可在脚本中替换的变量。

另请参阅

会话集成器
使用会话集成器