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

取得值,指出通道物件屬性的字典是否已經同步 (Synchronize)。

(繼承來源 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

適用於