Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy to use beginInvoke and DebuggerStepThroughAttribute and other attributes
    text
    copied!<p>While I was going through some code sample, I noticed the following attributes which I do not understand how used.This classes seems to be generated from xsd.</p> <pre><code>[System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="FlightHistoryGetRecordsSOAPBinding", Namespace="http://www.pathfinder-xml.com/FlightHistoryService.wsdl")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)] [return: System.Xml.Serialization.XmlElementAttribute("FlightHistoryGetRecordsResponse", Namespace="http://pathfinder-xml/FlightHistoryService.xsd")] </code></pre> <p>Also could not understand the following methods:</p> <pre><code>public System.IAsyncResult BeginFlightHistoryGetRecordsOperation(FlightHistoryGetRecordsRequest FlightHistoryGetRecordsRequest, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("FlightHistoryGetRecordsOperation", new object[] { FlightHistoryGetRecordsRequest}, callback, asyncState); } /// &lt;remarks/&gt; public FlightHistoryGetRecordsResponse EndFlightHistoryGetRecordsOperation(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((FlightHistoryGetRecordsResponse)(results[0])); } </code></pre> <p>So I have the following questions:<br> 1. What does each attribute do.<br> 2.What is the return doing in attributes?<br> 3.What are the parameters used in <code>FlightHistoryGetRecordsResponse</code> method and why is it returning <code>this.BeginInvoke</code>?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload