Share via


WebRequestModuleElement 构造函数

定义

初始化 WebRequestModuleElement 类的新实例。

重载

WebRequestModuleElement()

初始化 WebRequestModuleElement 类的新实例。

WebRequestModuleElement(String, String)

使用指定的 URI 前缀和类型信息初始化 WebRequestModuleElement 类的新实例。

WebRequestModuleElement(String, Type)

使用指定的 URI 前缀和类型标识符初始化 WebRequestModuleElement 类的新实例。

WebRequestModuleElement()

初始化 WebRequestModuleElement 类的新实例。

public:
 WebRequestModuleElement();
public WebRequestModuleElement ();
Public Sub New ()

适用于

WebRequestModuleElement(String, String)

使用指定的 URI 前缀和类型信息初始化 WebRequestModuleElement 类的新实例。

public:
 WebRequestModuleElement(System::String ^ prefix, System::String ^ type);
public WebRequestModuleElement (string prefix, string type);
new System.Net.Configuration.WebRequestModuleElement : string * string -> System.Net.Configuration.WebRequestModuleElement
Public Sub New (prefix As String, type As String)

参数

prefix
String

包含 URI 前缀的字符串。

type
String

一个字符串,包含处理创建使用 prefix URI 前缀的资源请求的类的类型和程序集信息。

注解

参数 type 包含完全限定的类型名称,后跟逗号 (,) 和程序集信息。 程序集信息的元素用逗号分隔,例如“System.Net.DigestClient, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"”。

属性 Prefix 设置为 prefixType 属性设置为 type

适用于

WebRequestModuleElement(String, Type)

使用指定的 URI 前缀和类型标识符初始化 WebRequestModuleElement 类的新实例。

public:
 WebRequestModuleElement(System::String ^ prefix, Type ^ type);
public WebRequestModuleElement (string prefix, Type type);
new System.Net.Configuration.WebRequestModuleElement : string * Type -> System.Net.Configuration.WebRequestModuleElement
Public Sub New (prefix As String, type As Type)

参数

prefix
String

包含 URI 前缀的字符串。

type
Type

一个 Type,标识处理创建对资源请求的类,这些请求使用 prefix URI 前缀。

注解

属性 Prefix 设置为 prefixType 属性设置为 type

适用于