資源簡介
GetHostInfo-C# Socket編程(2)識別網絡主機
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.Net;
namespace?GetHostAddress
{
????public?partial?class?Main_From?:?Form
????{
????????public?Main_From()
????????{
????????????InitializeComponent();
????????}
????????///?
????????///?顯示本機IP信息
????????///?
????????///?
????????///?
????????private?void?btn_localIP_Click(object?sender?EventArgs?e)
????????{
????????????this.rtb_local.Clear();
????????????//獲取本地主機名
????????????string?localHostName?=?Dns.GetHostName();
????????????AppendRtbText(this.rtb_local?string.Format(“本機主機名:{0}“?localHo
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????11776??2012-10-11?17:03??GetHostInfo\GetHostAddress\bin\Debug\GetHostAddress.exe
?????文件??????24064??2012-10-11?17:03??GetHostInfo\GetHostAddress\bin\Debug\GetHostAddress.pdb
?????文件??????11600??2012-10-11?17:03??GetHostInfo\GetHostAddress\bin\Debug\GetHostAddress.vshost.exe
?????文件????????606??2012-10-11?17:03??GetHostInfo\GetHostAddress\Extend\Extensions.cs
?????文件???????3755??2012-10-11?17:03??GetHostInfo\GetHostAddress\GetHostAddress.csproj
?????文件???????3122??2012-10-11?17:03??GetHostInfo\GetHostAddress\Main_From.cs
?????文件???????8069??2012-10-11?17:03??GetHostInfo\GetHostAddress\Main_From.Designer.cs
?????文件???????5817??2012-10-11?17:03??GetHostInfo\GetHostAddress\Main_From.resx
?????文件???????6320??2012-10-11?17:03??GetHostInfo\GetHostAddress\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????372??2012-10-11?17:03??GetHostInfo\GetHostAddress\obj\x86\Debug\GenerateResource.read.1.tlog
?????文件????????870??2012-10-11?17:03??GetHostInfo\GetHostAddress\obj\x86\Debug\GenerateResource.write.1.tlog
?????文件???????1040??2012-10-11?17:03??GetHostInfo\GetHostAddress\obj\x86\Debug\GetHostAddress.csproj.FileListAbsolute.txt
?????文件??????11776??2012-10-11?17:03??GetHostInfo\GetHostAddress\obj\x86\Debug\GetHostAddress.exe
?????文件????????180??2012-10-11?17:03??GetHostInfo\GetHostAddress\obj\x86\Debug\GetHostAddress.Main_From.resources
?????文件??????24064??2012-10-11?17:03??GetHostInfo\GetHostAddress\obj\x86\Debug\GetHostAddress.pdb
?????文件????????180??2012-10-11?17:03??GetHostInfo\GetHostAddress\obj\x86\Debug\GetHostAddress.Properties.Resources.resources
?????文件????????499??2012-10-11?17:00??GetHostInfo\GetHostAddress\Program.cs
?????文件???????1376??2012-10-11?17:00??GetHostInfo\GetHostAddress\Properties\AssemblyInfo.cs
?????文件???????2878??2012-10-11?17:00??GetHostInfo\GetHostAddress\Properties\Resources.Designer.cs
?????文件???????5612??2012-10-11?17:00??GetHostInfo\GetHostAddress\Properties\Resources.resx
?????文件???????1099??2012-10-11?17:00??GetHostInfo\GetHostAddress\Properties\Settings.Designer.cs
?????文件????????249??2012-10-11?17:00??GetHostInfo\GetHostAddress\Properties\Settings.settings
?????文件???????2291??2012-10-11?17:05??GetHostInfo\GetHostInfo.sln
????..A..H.?????48128??2012-10-11?17:15??GetHostInfo\GetHostInfo.suo
?????文件???????9728??2012-10-11?17:05??GetHostInfo\GetNetInterfaceInfo\bin\Debug\GetNetInterfaceInfo.exe
?????文件??????22016??2012-10-11?17:05??GetHostInfo\GetNetInterfaceInfo\bin\Debug\GetNetInterfaceInfo.pdb
?????文件??????11600??2012-10-11?17:06??GetHostInfo\GetNetInterfaceInfo\bin\Debug\GetNetInterfaceInfo.vshost.exe
?????文件???????3717??2012-10-11?17:05??GetHostInfo\GetNetInterfaceInfo\GetNetInterfaceInfo.csproj
?????文件???????2740??2012-10-11?17:05??GetHostInfo\GetNetInterfaceInfo\Main_From.cs
?????文件???????2458??2012-10-11?17:05??GetHostInfo\GetNetInterfaceInfo\Main_From.Designer.cs
............此處省略100個文件信息
- 上一篇:C#開發的簡單的WEB服務器源代碼
- 下一篇:c# MODBUS協議 上位機
評論
共有 條評論