資源簡介
c# 獲取公網(wǎng)ip 示例源碼
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Diagnostics;
using?System.ServiceProcess;
using?System.Text;
using?EGetIp.Util;
using?System.Threading;
namespace?EGetIp
{
????public?partial?class?EGetIp?:?Servicebase
????{
????????public?EGetIp()
????????{
????????????InitializeComponent();
????????}
????????protected?override?void?onstart(string[]?args)
????????{
????????????//初始化配置文件的參數(shù)
????????????GlobalVariables.InitializationConfig();
????????????Thread?getIpThread?=?new?Thread(GetIp);
????????????getIpThread.IsBackground?=?true;
????????????getIpThread.Start();
????????}
????????protected?override?void?onstop()
????????{
????????????SysLog.WriteEntry(“EGetIp“?“停止了服務(wù)“?+?DateTime.Now?SysLog.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????9728??2012-08-13?18:04??GetIp\GetIp\bin\Debug\GetIp.exe
?????文件??????22016??2012-08-13?18:04??GetIp\GetIp\bin\Debug\GetIp.pdb
?????文件??????11608??2012-08-17?11:02??GetIp\GetIp\bin\Debug\GetIp.vshost.exe
?????文件????????490??2010-03-17?22:39??GetIp\GetIp\bin\Debug\GetIp.vshost.exe.manifest
?????文件????????245??2012-08-13?17:38??GetIp\GetIp\bin\Debug\Log\20120813\EXCTrace?20120813.Log
?????文件???????9728??2012-08-13?17:40??GetIp\GetIp\bin\GetIp\GetIp.exe
?????文件??????22016??2012-08-13?17:40??GetIp\GetIp\bin\GetIp\GetIp.pdb
?????文件??????11608??2012-08-13?17:40??GetIp\GetIp\bin\GetIp\GetIp.vshost.exe
?????文件????????490??2010-03-17?22:39??GetIp\GetIp\bin\GetIp\GetIp.vshost.exe.manifest
?????文件????????245??2012-08-13?17:38??GetIp\GetIp\bin\GetIp\Log\20120813\EXCTrace?20120813.Log
?????文件???????2276??2012-08-13?17:26??GetIp\GetIp\GetIp.csproj
?????文件???????5002??2012-08-13?18:04??GetIp\GetIp\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????308??2012-08-17?11:02??GetIp\GetIp\obj\x86\Debug\GetIp.csproj.FileListAbsolute.txt
?????文件???????9728??2012-08-13?18:04??GetIp\GetIp\obj\x86\Debug\GetIp.exe
?????文件??????22016??2012-08-13?18:04??GetIp\GetIp\obj\x86\Debug\GetIp.pdb
?????文件???????4070??2012-08-13?18:04??GetIp\GetIp\Program.cs
?????文件???????1360??2012-08-13?17:12??GetIp\GetIp\Properties\AssemblyInfo.cs
?????文件???????3811??2012-08-13?17:26??GetIp\GetIp\Util\Adr_LogManager.cs
?????文件???????2732??2012-08-13?17:23??GetIp\GetIp\Util\Adr_TxtFile.cs
?????文件???????1996??2012-09-18?11:54??GetIp\GetIp.sln
????..A..H.?????28160??2012-09-18?11:54??GetIp\GetIp.suo
?????目錄??????????0??2012-08-13?17:26??GetIp\GetIp\bin\Debug\Log\20120813
?????目錄??????????0??2012-08-13?17:40??GetIp\GetIp\bin\GetIp\Log\20120813
?????目錄??????????0??2012-08-13?17:12??GetIp\GetIp\obj\x86\Debug\TempPE
?????目錄??????????0??2012-08-13?17:26??GetIp\GetIp\bin\Debug\Log
?????目錄??????????0??2012-08-13?17:40??GetIp\GetIp\bin\GetIp\Log
?????目錄??????????0??2012-08-13?18:04??GetIp\GetIp\obj\x86\Debug
?????目錄??????????0??2012-08-13?18:04??GetIp\GetIp\bin\Debug
?????目錄??????????0??2012-08-13?17:40??GetIp\GetIp\bin\GetIp
?????目錄??????????0??2012-08-13?17:12??GetIp\GetIp\obj\x86
............此處省略51個文件信息
- 上一篇:微軟c# 字符串通用類
- 下一篇:wpf 拖拽
評論
共有 條評論