📄 reference.cs
字号:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.42
//
// 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.CompactFramework.Design.Data, Version 2.0.50727.42.
//
namespace WSCompressionSample.CompressionService {
using System.Diagnostics;
using System.Web.Services;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System;
using System.Xml.Serialization;
using CompressionSOAPExtensionLibrary;
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="CustomersServiceSoap", Namespace="http://MobileDevelopersHandbook.org/")]
public partial class CustomersService : System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public CustomersService() {
this.Url = "http://localhost/CompressionService/CustomersService.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://MobileDevelopersHandbook.org/GetCustomers", RequestNamespace="http://MobileDevelopersHandbook.org/", ResponseNamespace="http://MobileDevelopersHandbook.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public CustomersDataSet GetCustomers() {
object[] results = this.Invoke("GetCustomers", new object[0]);
return ((CustomersDataSet)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetCustomers(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetCustomers", new object[0], callback, asyncState);
}
/// <remarks/>
public CustomersDataSet EndGetCustomers(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((CustomersDataSet)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://MobileDevelopersHandbook.org/GetCompressedCustomers", RequestNamespace="http://MobileDevelopersHandbook.org/", ResponseNamespace="http://MobileDevelopersHandbook.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[CompressionSoapExtension]
public CustomersDataSet GetCompressedCustomers() {
object[] results = this.Invoke("GetCompressedCustomers", new object[0]);
return ((CustomersDataSet)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetCompressedCustomers(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetCompressedCustomers", new object[0], callback, asyncState);
}
/// <remarks/>
public CustomersDataSet EndGetCompressedCustomers(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((CustomersDataSet)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://MobileDevelopersHandbook.org/UpdateCustomers", RequestNamespace="http://MobileDevelopersHandbook.org/", ResponseNamespace="http://MobileDevelopersHandbook.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int UpdateCustomers(CustomersDataSet customersDataSet) {
object[] results = this.Invoke("UpdateCustomers", new object[] {
customersDataSet});
return ((int)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginUpdateCustomers(CustomersDataSet customersDataSet, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("UpdateCustomers", new object[] {
customersDataSet}, callback, asyncState);
}
/// <remarks/>
public int EndUpdateCustomers(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((int)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://MobileDevelopersHandbook.org/UpdateCompressedCustomers", RequestNamespace="http://MobileDevelopersHandbook.org/", ResponseNamespace="http://MobileDevelopersHandbook.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[CompressionSoapExtension]
public int UpdateCompressedCustomers(CustomersDataSet customersDataSet)
{
object[] results = this.Invoke("UpdateCompressedCustomers", new object[] {
customersDataSet});
return ((int)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginUpdateCompressedCustomers(CustomersDataSet customersDataSet, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("UpdateCompressedCustomers", new object[] {
customersDataSet}, callback, asyncState);
}
/// <remarks/>
public int EndUpdateCompressedCustomers(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((int)(results[0]));
}
}
// This type definition was generated by System.Data.Design.TypedDataSetSchemaImporterExtension schema importer extension.
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
[System.Xml.Serialization.XmlRootAttribute("CustomersDataSet")]
public partial class CustomersDataSet : System.Data.DataSet {
private CustomersDataTable tableCustomers;
private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomersDataSet() {
this.BeginInit();
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
base.Relations.CollectionChanged += schemaChangedHandler;
this.EndInit();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomersDataTable Customers {
get {
return this.tableCustomers;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.SchemaSerializationMode SchemaSerializationMode {
get {
return this._schemaSerializationMode;
}
set {
this._schemaSerializationMode = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public new System.Data.DataTableCollection Tables {
get {
return base.Tables;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public new System.Data.DataRelationCollection Relations {
get {
return base.Relations;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void InitializeDerivedDataSet() {
this.BeginInit();
this.InitClass();
this.EndInit();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataSet Clone() {
CustomersDataSet cln = ((CustomersDataSet)(base.Clone()));
cln.InitVars();
cln.SchemaSerializationMode = this.SchemaSerializationMode;
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override bool ShouldSerializeTables() {
return false;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override bool ShouldSerializeRelations() {
return false;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void ReadXmlSerializable(System.Xml.XmlReader reader) {
if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) {
this.Reset();
System.Data.DataSet ds = new System.Data.DataSet();
ds.ReadXml(reader);
if ((ds.Tables["Customers"] != null)) {
base.Tables.Add(new CustomersDataTable(ds.Tables["Customers"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXml(reader);
this.InitVars();
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
System.IO.MemoryStream stream = new System.IO.MemoryStream();
this.WriteXmlSchema(new System.Xml.XmlTextWriter(stream, null));
stream.Position = 0;
return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.InitVars(true);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars(bool initTable) {
this.tableCustomers = ((CustomersDataTable)(base.Tables["Customers"]));
if ((initTable == true)) {
if ((this.tableCustomers != null)) {
this.tableCustomers.InitVars();
}
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.DataSetName = "CustomersDataSet";
this.Prefix = "";
this.Namespace = "http://tempuri.org/CustomersDataSet.xsd";
this.EnforceConstraints = true;
this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
this.tableCustomers = new CustomersDataTable();
base.Tables.Add(this.tableCustomers);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeCustomers() {
return false;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) {
CustomersDataSet ds = new CustomersDataSet();
System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
xs.Add(ds.GetSchemaSerializable());
System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny();
any.Namespace = ds.Namespace;
sequence.Items.Add(any);
type.Particle = sequence;
return type;
}
public delegate void CustomersRowChangeEventHandler(object sender, CustomersRowChangeEvent e);
[System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class CustomersDataTable : System.Data.DataTable, System.Collections.IEnumerable {
private System.Data.DataColumn columnCustomerID;
private System.Data.DataColumn columnCompanyName;
private System.Data.DataColumn columnContactName;
private System.Data.DataColumn columnContactTitle;
private System.Data.DataColumn columnAddress;
private System.Data.DataColumn columnCity;
private System.Data.DataColumn columnRegion;
private System.Data.DataColumn columnPostalCode;
private System.Data.DataColumn columnCountry;
private System.Data.DataColumn columnPhone;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -