BaseChannelWithProperties 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供一個基礎實作,供想要透過字典介面揭露其屬性的通道使用。
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 類別處理通道匯鏈中詢問匯的性質的複雜性。 通道建構其匯鏈(如適用)後,必須設定該 SinksWithProperties 性質。
此類別在類別層級提出連結需求與繼承需求。 當直接呼叫者或衍生類別沒有基礎設施權限時,會拋出 A SecurityException 。
給實施者的注意事項
當你從 繼承 BaseChannelWithProperties時,你必須實作 屬性 Keys 和 屬性 Item[Object] 。
建構函式
| 名稱 | Description |
|---|---|
| BaseChannelWithProperties() |
初始化 BaseChannelWithProperties 類別的新執行個體。 |
欄位
| 名稱 | Description |
|---|---|
| SinksWithProperties |
表示槽槽匯堆疊中的頂端通道匯。 |
屬性
| 名稱 | Description |
|---|---|
| Count |
取得與通道物件相關的屬性數量。 (繼承來源 BaseChannelObjectWithProperties) |
| IsFixedSize |
會得到一個值,表示通道物件中可輸入屬性數量是否固定。 (繼承來源 BaseChannelObjectWithProperties) |
| IsReadOnly |
會獲得一個值,表示通道物件中的屬性集合是否為唯讀。 (繼承來源 BaseChannelObjectWithProperties) |
| IsSynchronized |
會得到一個值,表示通道物件屬性字典是否同步。 (繼承來源 BaseChannelObjectWithProperties) |
| Item[Object] |
當在派生類別中覆寫時,會取得或設定與指定鍵相關聯的屬性。 (繼承來源 BaseChannelObjectWithProperties) |
| Keys |
當在衍生類別中覆寫時,會獲得 ICollection 通道物件屬性所關聯的一組鍵。 (繼承來源 BaseChannelObjectWithProperties) |
| Properties |
取得 IDictionary 與目前通道物件相關的通道屬性。 |
| SyncRoot |
取得一個物件用來同步存取。BaseChannelObjectWithProperties (繼承來源 BaseChannelObjectWithProperties) |
| Values |
取得 ICollection 與通道物件相關屬性的數值。 (繼承來源 BaseChannelObjectWithProperties) |
方法
| 名稱 | Description |
|---|---|
| Add(Object, Object) | (繼承來源 BaseChannelObjectWithProperties) |
| Clear() | (繼承來源 BaseChannelObjectWithProperties) |
| Contains(Object) |
回傳一個值,指示通道物件是否包含與指定鍵相關聯的屬性。 (繼承來源 BaseChannelObjectWithProperties) |
| CopyTo(Array, Int32) | (繼承來源 BaseChannelObjectWithProperties) |
| Equals(Object) |
判斷指定的 物件是否等於目前的物件。 (繼承來源 Object) |
| GetEnumerator() |
回傳 a IDictionaryEnumerator ,列舉所有與通道物件相關的屬性。 (繼承來源 BaseChannelObjectWithProperties) |
| GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| Remove(Object) | (繼承來源 BaseChannelObjectWithProperties) |
| ToString() |
傳回表示目前 物件的字串。 (繼承來源 Object) |
明確介面實作
| 名稱 | Description |
|---|---|
| IEnumerable.GetEnumerator() |
回傳 a IEnumerator 枚舉所有與通道物件相關聯的屬性。 (繼承來源 BaseChannelObjectWithProperties) |
擴充方法
| 名稱 | Description |
|---|---|
| AsParallel(IEnumerable) |
啟用查詢的平行處理。 |
| AsQueryable(IEnumerable) |
將 IEnumerable 轉換成 IQueryable。 |
| Cast<TResult>(IEnumerable) |
將 IEnumerable 的項目轉換成指定的型別。 |
| OfType<TResult>(IEnumerable) |
根據指定的型別篩選 IEnumerable 的專案。 |