MS ajax Sys.net

和直接使用XMLHttpRequest 差不多

Sys.Net.WebServiceProxy 
Class web service方法
        you do not instantiate the WebServiceProxy class directly.This proxy class is generated as a result of including a Web service reference in a page

Sys.Net.NetworkRequestEventArgs Class
ains information about a Web request  that is ready to be sent to the current Sys.Net.WebRequestExecutor instance.
        get_webRequest()  得到当前WebRequestExecutor实例

Sys.Net.WebRequest  class
Event    事件的参数eventArgs
complete
method
add_completed()
getReslvedUrl()
invoke()                             Executes a Web request.
remove_completed()

body              (Property)
executor         (Property)      设置一个Executor属性
        You set the executor property only if you need a custom network executor. If you do not set this property, the system uses the default Sys.Net.XmlHttpExecutor executor, which is set after the invoke method is called.

headers      (Property)              HTTP的头信息
httpVerb     (Property)
timeout       (Property)               超时时间
Url              (Property)              请求的url
userContext  (Property)            用户上下文

作为completedRequest事件的参数,得到请求后的结果及状态信息,也可以作为web Request的参数
Sys.Net.WebRequestExecutor Class
Provides the abstract base class from which network executors derive
method
abort()
executeRequest()                             execute a Web request.
getAllResponseHeaders()                    获得全部头信息
getResponseHeader()                          获得指定头信息  
aborted()                                            请求是否终止
responseAvailable (Property)               请求是否成功完成
responseData  (Property)           响应当前请求的Body文本
started  (Property)                          是否已经开始处理请求
statusCode  (Property)                          状态代码
statusText  (Property)                            状态信息
timeOut   (Property)
xml  (Property)

Sys.Net.WebRequestManager Class
defaultExecutor   (Property)
defaultTimeout  (Property)
add_completedRequest()         after the Web request is executed
add_invokingRequest()            before the Web request is executed
remove_completedRequest()
remove_invokingRequest()
executeRequest()                     Executes the specified Web request

Sys.Net.WebServiceError
class
exception (Property)
message (Property)
statusCode (Property)
stackTrace (Property)
timedOut (Property)

XMLHTTP
Sys.Net.XMLHttpExecutor Class
abort()
executeRequest()
getAllResponseHeaders()
getResponseHeader()
aborted (Property)
responseAvailable (Property)
responseData (Property)
started (Property)
statusCode (Property)
statusText (Property)
timedOut (Property)
xml (Property)





你可能感兴趣的:(.net)