Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an outbound web request with restrictions/enhancements specific to SharePoint.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function SafeCreate ( _
requestUri As Uri, _
context As SPContext _
) As WebRequest
'Usage
Dim requestUri As Uri
Dim context As SPContext
Dim returnValue As WebRequest
returnValue = SPWebRequest.SafeCreate(requestUri, _
context)
public static WebRequest SafeCreate(
Uri requestUri,
SPContext context
)
Parameters
requestUri
Type: System.UriOutbound Uri.
context
Type: Microsoft.SharePoint.SPContextSPContext for which the outbound web request is to be created.
Return value
Type: System.Net.WebRequest
WebRequest