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 属性。

此类在类级别发出链接需求和继承需求。 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)

扩展方法

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

适用于