Create Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates a WebRequest instance.
Namespace: System.Net
Assembly: System.Http (in System.Http.dll)
Syntax
'Declaration
Function Create ( _
uri As Uri _
) As WebRequest
WebRequest Create(
Uri uri
)
WebRequest^ Create(
Uri^ uri
)
abstract Create :
uri:Uri -> WebRequest
function Create(
uri : Uri
) : WebRequest
Parameters
- uri
Type: System. . :: . .Uri
The uniform resource identifier (URI) of the Web resource.
Return Value
Type: System.Net. . :: . .WebRequest
A WebRequest instance.
Remarks
The Create method must return an initialized instance of the WebRequest descendant that is capable of performing a standard request/response transaction for the protocol without needing any protocol-specific fields modified.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.