WebProxy.Invoke method
Handles an outbound http request.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Shared Function Invoke ( _
context As ClientRuntimeContext, _
requestInfo As WebRequestInfo _
) As ClientResult(Of WebResponseInfo)
'Usage
Dim context As ClientRuntimeContext
Dim requestInfo As WebRequestInfo
Dim returnValue As ClientResult(Of WebResponseInfo)
returnValue = WebProxy.Invoke(context, _
requestInfo)
public static ClientResult<WebResponseInfo> Invoke(
ClientRuntimeContext context,
WebRequestInfo requestInfo
)
Parameters
context
Type: Microsoft.SharePoint.Client.ClientRuntimeContextThe runtime context.
requestInfo
Type: Microsoft.SharePoint.Client.WebRequestInfoA WebRequestInfo object that contains the URL, headers, and body of the outbound request.
Return value
Type: Microsoft.SharePoint.Client.ClientResult<WebResponseInfo>
A WebResponseInfo object containing the status code, headers, and the body of the response to the outbound request.