📄 reference.cs
字号:
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行库版本:2.0.50727.1433
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
//
// 此源代码是由 Microsoft.VSDesigner 2.0.50727.1433 版自动生成。
//
#pragma warning disable 1591
namespace StockMarket.WebService {
using System.Diagnostics;
using System.Web.Services;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System;
using System.Xml.Serialization;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="ChinaStockWebServiceSoap", Namespace="http://WebXml.com.cn/")]
public partial class ChinaStockWebService : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback getStockImageByCodeOperationCompleted;
private System.Threading.SendOrPostCallback getStockImageByteByCodeOperationCompleted;
private System.Threading.SendOrPostCallback getStockImage_kByCodeOperationCompleted;
private System.Threading.SendOrPostCallback getStockImage_kByteByCodeOperationCompleted;
private System.Threading.SendOrPostCallback getStockInfoByCodeOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public ChinaStockWebService() {
this.Url = global::StockMarket.Properties.Settings.Default.StockMarket_WebService_ChinaStockWebService;
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
this.UseDefaultCredentials = true;
this.useDefaultCredentialsSetExplicitly = false;
}
else {
this.useDefaultCredentialsSetExplicitly = true;
}
}
public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
&& (this.useDefaultCredentialsSetExplicitly == false))
&& (this.IsLocalFileSystemWebService(value) == false))) {
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials {
get {
return base.UseDefaultCredentials;
}
set {
base.UseDefaultCredentials = value;
this.useDefaultCredentialsSetExplicitly = true;
}
}
/// <remarks/>
public event getStockImageByCodeCompletedEventHandler getStockImageByCodeCompleted;
/// <remarks/>
public event getStockImageByteByCodeCompletedEventHandler getStockImageByteByCodeCompleted;
/// <remarks/>
public event getStockImage_kByCodeCompletedEventHandler getStockImage_kByCodeCompleted;
/// <remarks/>
public event getStockImage_kByteByCodeCompletedEventHandler getStockImage_kByteByCodeCompleted;
/// <remarks/>
public event getStockInfoByCodeCompletedEventHandler getStockInfoByCodeCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://WebXml.com.cn/getStockImageByCode", RequestNamespace="http://WebXml.com.cn/", ResponseNamespace="http://WebXml.com.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void getStockImageByCode(string theStockCode) {
this.Invoke("getStockImageByCode", new object[] {
theStockCode});
}
/// <remarks/>
public void getStockImageByCodeAsync(string theStockCode) {
this.getStockImageByCodeAsync(theStockCode, null);
}
/// <remarks/>
public void getStockImageByCodeAsync(string theStockCode, object userState) {
if ((this.getStockImageByCodeOperationCompleted == null)) {
this.getStockImageByCodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetStockImageByCodeOperationCompleted);
}
this.InvokeAsync("getStockImageByCode", new object[] {
theStockCode}, this.getStockImageByCodeOperationCompleted, userState);
}
private void OngetStockImageByCodeOperationCompleted(object arg) {
if ((this.getStockImageByCodeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.getStockImageByCodeCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://WebXml.com.cn/getStockImageByteByCode", RequestNamespace="http://WebXml.com.cn/", ResponseNamespace="http://WebXml.com.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")]
public byte[] getStockImageByteByCode(string theStockCode) {
object[] results = this.Invoke("getStockImageByteByCode", new object[] {
theStockCode});
return ((byte[])(results[0]));
}
/// <remarks/>
public void getStockImageByteByCodeAsync(string theStockCode) {
this.getStockImageByteByCodeAsync(theStockCode, null);
}
/// <remarks/>
public void getStockImageByteByCodeAsync(string theStockCode, object userState) {
if ((this.getStockImageByteByCodeOperationCompleted == null)) {
this.getStockImageByteByCodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetStockImageByteByCodeOperationCompleted);
}
this.InvokeAsync("getStockImageByteByCode", new object[] {
theStockCode}, this.getStockImageByteByCodeOperationCompleted, userState);
}
private void OngetStockImageByteByCodeOperationCompleted(object arg) {
if ((this.getStockImageByteByCodeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.getStockImageByteByCodeCompleted(this, new getStockImageByteByCodeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://WebXml.com.cn/getStockImage_kByCode", RequestNamespace="http://WebXml.com.cn/", ResponseNamespace="http://WebXml.com.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void getStockImage_kByCode(string theStockCode, string theType) {
this.Invoke("getStockImage_kByCode", new object[] {
theStockCode,
theType});
}
/// <remarks/>
public void getStockImage_kByCodeAsync(string theStockCode, string theType) {
this.getStockImage_kByCodeAsync(theStockCode, theType, null);
}
/// <remarks/>
public void getStockImage_kByCodeAsync(string theStockCode, string theType, object userState) {
if ((this.getStockImage_kByCodeOperationCompleted == null)) {
this.getStockImage_kByCodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetStockImage_kByCodeOperationCompleted);
}
this.InvokeAsync("getStockImage_kByCode", new object[] {
theStockCode,
theType}, this.getStockImage_kByCodeOperationCompleted, userState);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -