研究C#接口属性类后,编写了一个COM 编排文件,将基于COM 的OPC 数据存取定制接口映射到.NET 接口,有效地实现了遵循OPC 数据存取规范2.0 版本的代码从COM 移植到.NET。文章的研究成果在工业自动化实时数据采集系统中具有实用价值。 关键词:COM 编排;OPC 数据存取;定制接口;实时数据 Abstract: One COM marshal file is coded after the C# attributes class ofinterface have been researched ,the OPC data access custom interface based on COM can be mapped to .NET interface,it is effectively realized to migrate the code following OPC specification version 2.0 from COM to .NET. The production of this paper has value on the industry automation data collection system. Key Words: COM marshal;OPC data access;custom interface;realtime data