IUnsafeWebRequestCreate.Create(Uri) 方法

定義

警告

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

初始化指定之 URI 配置的新 WebRequest 執行個體。

C#
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public System.Net.WebRequest Create(Uri uri);

參數

uri
Uri

所要求資源的 URI。

傳回

傳回 WebRequest

WebRequest 子代,屬於指定的 URI 配置。

屬性

適用於

產品 版本 (已過時)
.NET Framework (4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)