BaseChannelWithProperties 类

定义

为希望向其属性公开字典接口的通道提供基本实现。

public ref class BaseChannelWithProperties abstract : System::Runtime::Remoting::Channels::BaseChannelObjectWithProperties
public abstract class BaseChannelWithProperties : System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class BaseChannelWithProperties : System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public abstract class BaseChannelWithProperties : System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties
type BaseChannelWithProperties = class
    inherit BaseChannelObjectWithProperties
[<System.Runtime.InteropServices.ComVisible(true)>]
type BaseChannelWithProperties = class
    inherit BaseChannelObjectWithProperties
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
type BaseChannelWithProperties = class
    inherit BaseChannelObjectWithProperties
Public MustInherit Class BaseChannelWithProperties
Inherits BaseChannelObjectWithProperties
继承
BaseChannelWithProperties
派生
属性

注解

重要

使用不受信任的数据调用此类中的方法存在安全风险。 仅在确保数据受信任的情况下,再从该类调用方法。 有关详细信息,请参阅验证所有输入

BaseChannelWithProperties 类处理在通道接收器链中请求接收器属性的复杂性。 通道构造其接收器链(如果适用),必须设置该 SinksWithProperties 属性。

此类在类级别发出链接需求和继承需求。 当直接调用方或派生类没有基础结构权限时,将引发 A SecurityException

实施者说明

BaseChannelWithProperties继承时,必须实现 Keys 属性和 Item[Object] 属性。

构造函数

名称 说明
BaseChannelWithProperties()

初始化 BaseChannelWithProperties 类的新实例。

字段

名称 说明
SinksWithProperties

指示通道接收器堆栈中的顶部通道接收器。

属性

名称 说明
Count

获取与通道对象关联的属性数。

(继承自 BaseChannelObjectWithProperties)
IsFixedSize

获取一个值,该值指示是否可以在通道对象中输入的属性数是固定的。

(继承自 BaseChannelObjectWithProperties)
IsReadOnly

获取一个值,该值指示通道对象中的属性集合是否为只读。

(继承自 BaseChannelObjectWithProperties)
IsSynchronized

获取一个值,该值指示通道对象属性的字典是否同步。

(继承自 BaseChannelObjectWithProperties)
Item[Object]

在派生类中重写时,获取或设置与指定键关联的属性。

(继承自 BaseChannelObjectWithProperties)
Keys

在派生类中重写时,获取 ICollection 通道对象属性与之关联的键。

(继承自 BaseChannelObjectWithProperties)
Properties

获取与 IDictionary 当前通道对象关联的通道属性。

SyncRoot

获取一个对象,该对象用于同步对 . 的访问 BaseChannelObjectWithProperties

(继承自 BaseChannelObjectWithProperties)
Values

获取与 ICollection 通道对象关联的属性的值。

(继承自 BaseChannelObjectWithProperties)

方法

名称 说明
Add(Object, Object)

引发 NotSupportedException

(继承自 BaseChannelObjectWithProperties)
Clear()

引发 NotSupportedException

(继承自 BaseChannelObjectWithProperties)
Contains(Object)

返回一个值,该值指示通道对象是否包含与指定键关联的属性。

(继承自 BaseChannelObjectWithProperties)
CopyTo(Array, Int32)

引发 NotSupportedException

(继承自 BaseChannelObjectWithProperties)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetEnumerator()

返回一个 IDictionaryEnumerator 枚举与通道对象关联的所有属性。

(继承自 BaseChannelObjectWithProperties)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
Remove(Object)

引发 NotSupportedException

(继承自 BaseChannelObjectWithProperties)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

显式接口实现

名称 说明
IEnumerable.GetEnumerator()

返回一个 IEnumerator 枚举与通道对象关联的所有属性。

(继承自 BaseChannelObjectWithProperties)

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

适用于