• 大小: 0.54M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: C#  

资源简介

opc

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using OPCAutomation;
using System.Collections;

namespace OPCClient
{
    class Common
    {

        public string GetLocalHostIP()
        {
            IPHostEntry IPHost = Dns.GetHostEntry(Environment.MachineName);
            if (IPHost.AddressList.Length > 0)
            {
                return IPHost.AddressList[3].ToString();
            }
            else
            {
                return null;
            }
        }

        public ArrayList GetOPCServers(string strHostIP)
        {
            ArrayList list = new ArrayList();
            OPCServer kepServer = new OPCServer();
            try
            {
                
                

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      40960  2015-12-15 22:16  OPC客户端\OPCClient\bin\Debug\Interop.OPCAutomation.dll

     文件      24576  2015-12-16 11:37  OPC客户端\OPCClient\bin\Debug\OPCClient.exe

     文件        144  2015-12-15 19:23  OPC客户端\OPCClient\bin\Debug\OPCClient.exe.config

     文件      40448  2015-12-16 11:37  OPC客户端\OPCClient\bin\Debug\OPCClient.pdb

     文件      11608  2016-01-06 14:57  OPC客户端\OPCClient\bin\Debug\OPCClient.vshost.exe

     文件        144  2015-12-15 19:23  OPC客户端\OPCClient\bin\Debug\OPCClient.vshost.exe.config

     文件        490  2015-06-04 12:48  OPC客户端\OPCClient\bin\Debug\OPCClient.vshost.exe.manifest

     文件        418  2004-06-30 09:18  OPC客户端\OPCClient\Images\checkboxes.bmp

     文件        566  2004-06-30 09:18  OPC客户端\OPCClient\Images\components.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\deleteitem.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\deleteitemgray.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\dupitem.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\dupitemgray.bmp

     文件        374  2004-06-30 09:18  OPC客户端\OPCClient\Images\eventimages.bmp

     文件       1378  2004-06-30 09:18  OPC客户端\OPCClient\Images\groupimages.bmp

     文件        630  2004-06-30 09:18  OPC客户端\OPCClient\Images\itemimages.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\newitem.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\newitemgray.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\next.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\nextgray.bmp

     文件        766  2004-06-30 09:18  OPC客户端\OPCClient\Images\opctestclient.ico

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\previous.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\previousgray.bmp

     文件       1526  2004-06-30 09:18  OPC客户端\OPCClient\Images\toolbar.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\validateitem.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\Images\validateitemgray.bmp

     文件       1240  2015-12-16 11:19  OPC客户端\OPCClient\OPCClient\Common.cs

     文件        418  2004-06-30 09:18  OPC客户端\OPCClient\OPCClient\Images\checkboxes.bmp

     文件        566  2004-06-30 09:18  OPC客户端\OPCClient\OPCClient\Images\components.bmp

     文件        238  2004-06-30 09:18  OPC客户端\OPCClient\OPCClient\Images\deleteitem.bmp

............此处省略144个文件信息

评论

共有 条评论