INTERNAL_WebRequestHelperMakeRequest Method |
Makes a synchronous or asynchronous request at the specified uri, using the specified method, with the specified headers and body, and calls the callbackMethod.
Namespace: SystemAssembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntax public string MakeRequest(
Uri address,
string Method,
Dictionary<string, string> headers,
string body,
DownloadStringCompletedEventHandler callbackMethod,
bool isAsync
)
Parameters
- address
- Type: SystemUri
the uri that identifies the Internet resource. - Method
- Type: SystemString
The method to be called after making the request. - headers
- Type: System.Collections.GenericDictionaryString, String
A dictionary containing the headers to put in the method.
The pairs key/values in the dictionary correspond to the pairs key/value in the headers.
- body
- Type: SystemString
The body of the request. - callbackMethod
- Type: System.NetDownloadStringCompletedEventHandler
The method to be called after the request has been made. - isAsync
- Type: SystemBoolean
A boolean that determines whether the request must be made synchronously or asynchronously.
Return Value
Type:
StringThe result of the request as a string.
See Also