BypassElementCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示跳过代理服务器的资源地址的容器。 此类不能被继承。
public ref class BypassElementCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Net.Configuration.BypassElement))]
public sealed class BypassElementCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Net.Configuration.BypassElement))>]
type BypassElementCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class BypassElementCollection
Inherits ConfigurationElementCollection
- 继承
- 属性
注解
此集合保存配置元素中配置元素的bypasslist
实例add
。 元素 add
指定驻留在服务器上的资源的地址。 当应用程序使用 WebRequest 或 WebClient 类请求资源时,如果资源的地址位于 bypasslist
中,则请求将直接发送到资源所在的服务器,而不是发送到代理服务器。
构造函数
BypassElementCollection() |
初始化 BypassElementCollection 类的空实例。 |
属性
方法
显式接口实现
ICollection.CopyTo(Array, Int32) |
将 ConfigurationElementCollection 复制到数组。 (继承自 ConfigurationElementCollection) |
扩展方法
Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定的类型。 |
OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。 |
AsParallel(IEnumerable) |
启用查询的并行化。 |
AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。 |