{"id":20206,"date":"2025-04-19T02:58:41","date_gmt":"2025-04-18T18:58:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/20206.html"},"modified":"2025-04-19T02:58:41","modified_gmt":"2025-04-18T18:58:41","slug":"%e5%88%a9%e7%94%a8webclient%e7%b1%bb%e5%90%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e8%bd%bd%e6%96%87%e4%bb%b6-2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/20206.html","title":{"rendered":"\u5229\u7528WebClient\u7c7b\u5411\u670d\u52a1\u5668\u4e0a\u8f7d\u6587\u4ef6"},"content":{"rendered":"<p>.NET \u63d0\u4f9b\u4e86\u8bb8\u591a\u4e0a\u8f7d\u6587\u4ef6\u7684\u65b9\u6cd5&#xff0c;\u5728Windows Form\u5e94\u7528\u7a0b\u5e8f\u4e2d&#xff0c;\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528WebClient\u7c7b\u6765\u5b9e\u73b0\u3002WebClient\u7c7b\u4e5f\u6709\u4e24\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u4e0a\u8f7d&#xff0c;UploadFile\u548cOpenWrite\u65b9\u6cd5&#xff0c;\u4e0b\u9762\u5c31\u662f\u4e00\u4e2a\u5b9e\u9645\u7684\u4f8b\u5b50&#xff0c;\u4e24\u79cd\u65b9\u6cd5\u90fd\u6709\u4ee3\u7801&#xff1a;\u00a0<\/p>\n<p>\u7ed3\u679c\u5982\u4e0b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"184\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418185840-6802a0e0738b0.png\" width=\"472\" \/> C#\u4ee3\u7801\u5982\u4e0b&#xff1a;<\/p>\n<p>using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Net; using System.Text; using System.IO;<\/p>\n<p> namespace UploadFile {<br \/>\n  public class Form1 : System.Windows.Forms.Form {<br \/>\n  private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Button button1; private System.Windows.Forms.Label label3; private System.Windows.Forms.Button button2; private System.Windows.Forms.TextBox txtFileName; private System.Windows.Forms.TextBox txtServerPath; private System.Windows.Forms.LinkLabel linkLabel1;<\/p>\n<p>private System.ComponentModel.Container components &#061; null;<\/p>\n<p>public Form1() {<br \/>\n  InitializeComponent(); } protected override void Dispose( bool disposing ) {<br \/>\n  if( disposing ) {<br \/>\n  if (components !&#061; null)\u00a0 {<br \/>\n  components.Dispose(); } } base.Dispose( disposing ); }<\/p>\n<p>#region Windows Form Designer generated code private void InitializeComponent() {<br \/>\n  System.Resources.ResourceManager resources &#061; new System.Resources.ResourceManager(typeof(Form1)); this.label1 &#061; new System.Windows.Forms.Label(); this.txtServerPath &#061; new System.Windows.Forms.TextBox(); this.label2 &#061; new System.Windows.Forms.Label(); this.button1 &#061; new System.Windows.Forms.Button(); this.txtFileName &#061; new System.Windows.Forms.TextBox(); this.label3 &#061; new System.Windows.Forms.Label(); this.button2 &#061; new System.Windows.Forms.Button(); this.linkLabel1 &#061; new System.Windows.Forms.LinkLabel(); this.SuspendLayout(); \/\/\u00a0 \/\/ label1 \/\/\u00a0 this.label1.ForeColor &#061; System.Drawing.Color.Red; this.label1.Location &#061; new System.Drawing.Point(8, 96); this.label1.Name &#061; &#034;label1&#034;; this.label1.Size &#061; new System.Drawing.Size(448, 16); this.label1.TabIndex &#061; 0; this.label1.TextAlign &#061; System.Drawing.ContentAlignment.MiddleCenter; \/\/\u00a0 \/\/ txtServerPath \/\/\u00a0 this.txtServerPath.Location &#061; new System.Drawing.Point(128, 8); this.txtServerPath.Name &#061; &#034;txtServerPath&#034;; this.txtServerPath.Size &#061; new System.Drawing.Size(320, 21); this.txtServerPath.TabIndex &#061; 1; this.txtServerPath.Text &#061; &#034;http:\/\/mengxianhui\/aspxWeb\/Images\/&#034;; \/\/\u00a0 \/\/ label2 \/\/\u00a0 this.label2.AutoSize &#061; true; this.label2.Font &#061; new System.Drawing.Font(&#034;\u5b8b\u4f53&#034;, 9F, System.Drawing.FontStyle.Bold,\u00a0 System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.label2.ForeColor &#061; System.Drawing.Color.Navy; this.label2.Location &#061; new System.Drawing.Point(8, 12); this.label2.Name &#061; &#034;label2&#034;; this.label2.Size &#061; new System.Drawing.Size(116, 17); this.label2.TabIndex &#061; 2; this.label2.Text &#061; &#034;\u8bf7\u8f93\u5165\u670d\u52a1\u5668\u5730\u5740&#xff1a;&#034;; this.label2.TextAlign &#061; System.Drawing.ContentAlignment.MiddleCenter; \/\/\u00a0 \/\/ button1 \/\/\u00a0 this.button1.Location &#061; new System.Drawing.Point(192, 64); this.button1.Name &#061; &#034;button1&#034;; this.button1.TabIndex &#061; 3; this.button1.Text &#061; &#034;\u4e0a\u8f7d\u6587\u4ef6&#034;; this.button1.Click &#043;&#061; new System.EventHandler(this.button1_Click); this.button1.MouseDown &#043;&#061; new System.Windows.Forms.MouseEventHandler(this.button1_MouseDown); \/\/\u00a0 \/\/ txtFileName \/\/\u00a0 this.txtFileName.Location &#061; new System.Drawing.Point(128, 32); this.txtFileName.Name &#061; &#034;txtFileName&#034;; this.txtFileName.Size &#061; new System.Drawing.Size(232, 21); this.txtFileName.TabIndex &#061; 4; this.txtFileName.Text &#061; &#034;&#034;; \/\/\u00a0 \/\/ label3 \/\/\u00a0 this.label3.AutoSize &#061; true; this.label3.Font &#061; new System.Drawing.Font(&#034;\u5b8b\u4f53&#034;, 9F, System.Drawing.FontStyle.Bold,\u00a0 System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.label3.ForeColor &#061; System.Drawing.Color.DarkBlue; this.label3.Location &#061; new System.Drawing.Point(8, 38); this.label3.Name &#061; &#034;label3&#034;; this.label3.Size &#061; new System.Drawing.Size(116, 17); this.label3.TabIndex &#061; 5; this.label3.Text &#061; &#034;\u8bf7\u8f93\u5165\u4e0a\u4f20\u6587\u4ef6\u540d&#xff1a;&#034;; this.label3.TextAlign &#061; System.Drawing.ContentAlignment.MiddleCenter; \/\/\u00a0 \/\/ button2 \/\/\u00a0 this.button2.Location &#061; new System.Drawing.Point(370, 32); this.button2.Name &#061; &#034;button2&#034;; this.button2.Size &#061; new System.Drawing.Size(80, 23); this.button2.TabIndex &#061; 6; this.button2.Text &#061; &#034;\u6d4f\u89c8\u6587\u4ef6\u2026&#034;; this.button2.Click &#043;&#061; new System.EventHandler(this.button2_Click); \/\/\u00a0 \/\/ linkLabel1 \/\/\u00a0 this.linkLabel1.Location &#061; new System.Drawing.Point(16, 120); this.linkLabel1.Name &#061; &#034;linkLabel1&#034;; this.linkLabel1.Size &#061; new System.Drawing.Size(440, 24); this.linkLabel1.TabIndex &#061; 7; this.linkLabel1.TextAlign &#061; System.Drawing.ContentAlignment.MiddleCenter; this.linkLabel1.LinkClicked &#043;&#061; new\u00a0 System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); \/\/\u00a0 \/\/ Form1 \/\/\u00a0 this.AutoScaleBaseSize &#061; new System.Drawing.Size(6, 14); this.BackColor &#061; System.Drawing.SystemColors.Control; this.ClientSize &#061; new System.Drawing.Size(464, 157); this.Controls.Add(this.linkLabel1); this.Controls.Add(this.button2); this.Controls.Add(this.txtFileName); this.Controls.Add(this.label3); this.Controls.Add(this.txtServerPath); this.Controls.Add(this.label2); this.Controls.Add(this.button1); this.Controls.Add(this.label1); this.Icon &#061; ((System.Drawing.Icon)(resources.GetObject(&#034;$this.Icon&#034;))); this.Name &#061; &#034;Form1&#034;; this.Text &#061; &#034;WebClient \u4e0a\u4f20\u6587\u4ef6\u7684\u4f8b\u5b50&#034;; this.Resize &#043;&#061; new System.EventHandler(this.Form1_Resize); this.ResumeLayout(false);<\/p>\n<p>} #endregion [STAThread] static void Main()\u00a0 {<br \/>\n  Application.Run(new Form1()); }<\/p>\n<p>\/\/\/ &lt;summary&gt; \/\/\/ .NET SDK \u4e0a\u9762\u7684\u6253\u5f00\u6587\u4ef6\u7684\u7c7b \/\/\/ &lt;\/summary&gt;<\/p>\n<p>private FileStream OpenFile() {<br \/>\n  OpenFileDialog dlgOpenFile &#061; new OpenFileDialog(); dlgOpenFile.ShowReadOnly &#061; true;<\/p>\n<p> if(dlgOpenFile.ShowDialog() &#061;&#061; DialogResult.OK) {<br \/>\n  if(dlgOpenFile.ReadOnlyChecked &#061;&#061; true) {<br \/>\n  return (FileStream)dlgOpenFile.OpenFile();<\/p>\n<p>} else {<br \/>\n  string path &#061; dlgOpenFile.FileName; return new FileStream(path, System.IO.FileMode.Open,\u00a0 System.IO.FileAccess.ReadWrite); } } return null; }<\/p>\n<p>private void button2_Click(object sender, System.EventArgs e) {<br \/>\n  OpenFileDialog dlgOpenFile &#061; new OpenFileDialog(); dlgOpenFile.InitialDirectory &#061; &#064;&#034;C:\\\\&#034;; dlgOpenFile.ShowReadOnly &#061; false; dlgOpenFile.ReadOnlyChecked &#061; true; dlgOpenFile.Filter &#061; &#034;\u6240\u6709\u6587\u4ef6 (*.*)|*.*&#034;; if(dlgOpenFile.ShowDialog() &#061;&#061; DialogResult.OK) {<br \/>\n  if(dlgOpenFile.ReadOnlyChecked &#061;&#061; true) {<br \/>\n  txtFileName.Text &#061; dlgOpenFile.FileName.ToString(); } } }<\/p>\n<p>private void button1_Click(object sender, System.EventArgs e) {<br \/>\n  \/\/ \u9700\u8981\u6ce8\u610f\u7684\u662f&#xff1a;txtServerPath\u6587\u4ef6\u5939\u6709\u533f\u540d\u53ef\u5199\u7684\u6743\u9650\u3002 \/\/ \u53ef\u4ee5\u81ea\u5df1\u5b9a\u4e49\u65b0\u6587\u4ef6\u540d\u5b57 if(txtFileName.Text.Trim() &#061;&#061; &#034;&#034; || txtServerPath.Text.Trim() &#061;&#061; &#034;&#034;) {<br \/>\n  MessageBox.Show(&#034;\u8bf7\u8f93\u5165\u4f60\u8981\u4e0a\u8f7d\u7684\u6587\u4ef6\u540d\u5b57&#xff01;&#034;,&#034;\u9519\u8bef&#xff1a;&#034;, MessageBoxButtons.OK, MessageBoxIcon.Information);\u00a0 } else {<br \/>\n  \/\/\/ \u5f97\u5230\u6587\u4ef6\u540d&#xff0c;\u6587\u4ef6\u6269\u5c55\u540d\u5b57&#xff0c;\u670d\u52a1\u5668\u8def\u5f84 string fileNamePath &#061; txtFileName.Text.Trim(); string uriString &#061; txtServerPath.Text.Trim(); string fileName &#061; fileNamePath.Substring(fileNamePath.LastIndexOf(&#034;\\\\\\\\&#034;) &#043; 1);\u00a0 string fileNameExt &#061; fileName.Substring(fileName.LastIndexOf(&#034;.&#034;) &#043; 1); if(uriString.EndsWith(&#034;\/&#034;) &#061;&#061; false) uriString &#061; uriString &#043; &#034;\/&#034;;<\/p>\n<p>uriString &#061; uriString &#043; fileName; \/\/\/ \u521b\u5efaWebClient\u5b9e\u4f8b WebClient myWebClient &#061; new WebClient(); myWebClient.Credentials &#061; CredentialCache.DefaultCredentials;<\/p>\n<p>\/\/ \u8981\u4e0a\u4f20\u7684\u6587\u4ef6 FileStream fs &#061; new FileStream(fileName, FileMode.Open, FileAccess.Read); \/\/FileStream fs &#061; OpenFile(); BinaryReader r &#061; new BinaryReader(fs); try {<br \/>\n  \/\/\u4f7f\u7528UploadFile\u65b9\u6cd5\u53ef\u4ee5\u7528\u4e0b\u9762\u7684\u683c\u5f0f \/\/myWebClient.UploadFile(uriString,&#034;PUT&#034;,fileNamePath); byte[] postArray &#061; r.ReadBytes((int)fs.Length); Stream postStream &#061; myWebClient.OpenWrite(uriString,&#034;PUT&#034;); if(postStream.CanWrite) {<br \/>\n  postStream.Write(postArray,0,postArray.Length); label1.Text &#061; fileName &#043; &#034;\u4e0a\u4f20\u6210\u529f&#xff01;&#034;; } else {<br \/>\n  label1.Text &#061; &#034;\u6587\u4ef6\u76ee\u524d\u4e0d\u53ef\u5199&#xff01;&#034;; } postStream.Close(); linkLabel1.Text &#061; &#034;\u67e5\u770b\u4e0a\u8f7d\u7684\u6587\u4ef6&#034;; for(int i &#061; linkLabel1.Links.Count &#8211; 1;i&gt;-1;i&#8211;) linkLabel1.Links.Remove(linkLabel1.Links[i]); linkLabel1.Links.Add(0,linkLabel1.Text.Length,uriString);\u00a0 } catch(WebException errMsg) {<br \/>\n  label1.Text&#061;&#034;\u4e0a\u4f20\u5931\u8d25&#xff1a;&#034; &#043; errMsg.Message; } } }<\/p>\n<p>private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) {<br \/>\n  this.WindowState &#061; FormWindowState.Minimized; this.linkLabel1.Links[linkLabel1.Links.IndexOf(e.Link)].Visited &#061; true; string target &#061; e.Link.LinkData as string; if(null !&#061; target) {<br \/>\n  System.Diagnostics.Process.Start(target); } else {\u00a0 MessageBox.Show(&#034;\u8bf7\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee&#xff1a;&#034; &#043; target); } }<\/p>\n<p>private void Form1_Resize(object sender, System.EventArgs e) {<br \/>\n  if(this.WindowState &#061;&#061; FormWindowState.Maximized) this.WindowState &#061; FormWindowState.Normal; }<\/p>\n<p>private void button1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) {<br \/>\n  if(txtFileName.Text.Trim() !&#061; &#034;&#034; &amp;&amp; txtServerPath.Text.Trim() !&#061; &#034;&#034;) label1.Text &#061; &#034;\u6b63\u5728\u4e0a\u4f20\u6587\u4ef6&#xff0c;\u8bf7\u7a0d\u4faf\u2026\u2026&#xff01;&#034;; }\u00a0 } } \u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb770\u6b21\uff0c\u70b9\u8d5e25\u6b21\uff0c\u6536\u85cf11\u6b21\u3002this.label2.Font = new System.Drawing.Font(&quot;\u5b8b\u4f53&quot;, 9F, System.Drawing.FontStyle.Bold,this.label3.Font = new System.Drawing.Font(&quot;\u5b8b\u4f53&quot;, 9F, System.Drawing.FontStyle.Bold,dlgOpenFile.Filter = &quot;\u6240\u6709\u6587\u4ef6 (*.*)|*.*&quot;;this.label3.Text = &quot;\u8bf7\u8f93\u5165\u4e0a\u4f20\u6587\u4ef6\u540d\uff1a&quot;;_webclient\u4e0a\u4f20\u6587\u4ef6<\/p>\n","protected":false},"author":2,"featured_media":20205,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-20206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5229\u7528WebClient\u7c7b\u5411\u670d\u52a1\u5668\u4e0a\u8f7d\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/20206.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5229\u7528WebClient\u7c7b\u5411\u670d\u52a1\u5668\u4e0a\u8f7d\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb770\u6b21\uff0c\u70b9\u8d5e25\u6b21\uff0c\u6536\u85cf11\u6b21\u3002this.label2.Font = new System.Drawing.Font(&quot;\u5b8b\u4f53&quot;, 9F, System.Drawing.FontStyle.Bold,this.label3.Font = new System.Drawing.Font(&quot;\u5b8b\u4f53&quot;, 9F, System.Drawing.FontStyle.Bold,dlgOpenFile.Filter = &quot;\u6240\u6709\u6587\u4ef6 (*.*)|*.*&quot;;this.label3.Text = &quot;\u8bf7\u8f93\u5165\u4e0a\u4f20\u6587\u4ef6\u540d\uff1a&quot;;_webclient\u4e0a\u4f20\u6587\u4ef6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/20206.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T18:58:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418185840-6802a0e0738b0.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/20206.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/20206.html\",\"name\":\"\u5229\u7528WebClient\u7c7b\u5411\u670d\u52a1\u5668\u4e0a\u8f7d\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T18:58:41+00:00\",\"dateModified\":\"2025-04-18T18:58:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/20206.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/20206.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/20206.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5229\u7528WebClient\u7c7b\u5411\u670d\u52a1\u5668\u4e0a\u8f7d\u6587\u4ef6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5229\u7528WebClient\u7c7b\u5411\u670d\u52a1\u5668\u4e0a\u8f7d\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/20206.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5229\u7528WebClient\u7c7b\u5411\u670d\u52a1\u5668\u4e0a\u8f7d\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb770\u6b21\uff0c\u70b9\u8d5e25\u6b21\uff0c\u6536\u85cf11\u6b21\u3002this.label2.Font = new System.Drawing.Font(&quot;\u5b8b\u4f53&quot;, 9F, System.Drawing.FontStyle.Bold,this.label3.Font = new System.Drawing.Font(&quot;\u5b8b\u4f53&quot;, 9F, System.Drawing.FontStyle.Bold,dlgOpenFile.Filter = &quot;\u6240\u6709\u6587\u4ef6 (*.*)|*.*&quot;;this.label3.Text = &quot;\u8bf7\u8f93\u5165\u4e0a\u4f20\u6587\u4ef6\u540d\uff1a&quot;;_webclient\u4e0a\u4f20\u6587\u4ef6","og_url":"https:\/\/www.wsisp.com\/helps\/20206.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T18:58:41+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418185840-6802a0e0738b0.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/20206.html","url":"https:\/\/www.wsisp.com\/helps\/20206.html","name":"\u5229\u7528WebClient\u7c7b\u5411\u670d\u52a1\u5668\u4e0a\u8f7d\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T18:58:41+00:00","dateModified":"2025-04-18T18:58:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/20206.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/20206.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/20206.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5229\u7528WebClient\u7c7b\u5411\u670d\u52a1\u5668\u4e0a\u8f7d\u6587\u4ef6"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/20206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=20206"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/20206\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/20205"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=20206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=20206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=20206"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=20206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}