📄 reference.cs
字号:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50215.44
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
//
// This source code was auto-generated by Microsoft.VSDesigner, Version 2.0.50215.44.
//
namespace WinInformationPollingService.CategoriesProxy {
using System.Diagnostics;
using System.Web.Services;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System;
using System.Xml.Serialization;
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="CategoriesServiceSoap", Namespace="http://www.wrox.com/Books/ProASPNET20XML/")]
public partial class CategoriesService : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback GetCategoriesOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public CategoriesService() {
this.Url = WinInformationPollingService.Properties.Settings.Default.WinInformationPollingService_CategoriesProxy_CategoriesService;
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 GetCategoriesCompletedEventHandler GetCategoriesCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.wrox.com/Books/ProASPNET20XML/GetCategories", RequestNamespace="http://www.wrox.com/Books/ProASPNET20XML/", ResponseNamespace="http://www.wrox.com/Books/ProASPNET20XML/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public Category[] GetCategories() {
object[] results = this.Invoke("GetCategories", new object[0]);
return ((Category[])(results[0]));
}
/// <remarks/>
public void GetCategoriesAsync() {
this.GetCategoriesAsync(null);
}
/// <remarks/>
public void GetCategoriesAsync(object userState) {
if ((this.GetCategoriesOperationCompleted == null)) {
this.GetCategoriesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCategoriesOperationCompleted);
}
this.InvokeAsync("GetCategories", new object[0], this.GetCategoriesOperationCompleted, userState);
}
private void OnGetCategoriesOperationCompleted(object arg) {
if ((this.GetCategoriesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetCategoriesCompleted(this, new GetCategoriesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
private bool IsLocalFileSystemWebService(string url) {
if (((url == null)
|| (url == string.Empty))) {
return false;
}
System.Uri wsUri = new System.Uri(url);
if ((((wsUri.Port >= 1024)
&& (wsUri.Port <= 5000))
&& (string.Compare(wsUri.Host, "localHost", true) == 0))) {
return true;
}
return false;
}
}
/// <remarks/>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.wrox.com/Books/ProASPNET20XML/")]
public partial class Category {
private int categoryIDField;
private string categoryNameField;
/// <remarks/>
public int CategoryID {
get {
return this.categoryIDField;
}
set {
this.categoryIDField = value;
}
}
/// <remarks/>
public string CategoryName {
get {
return this.categoryNameField;
}
set {
this.categoryNameField = value;
}
}
}
/// <remarks/>
public delegate void GetCategoriesCompletedEventHandler(object sender, GetCategoriesCompletedEventArgs e);
/// <remarks/>
public partial class GetCategoriesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetCategoriesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Category[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Category[])(this.results[0]));
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -