ResourceKey 類別

定義

為各種資源索引鍵提供抽象基底類別。

public ref class ResourceKey abstract : System::Windows::Markup::MarkupExtension
[System.Windows.Markup.MarkupExtensionReturnType(typeof(System.Windows.ResourceKey))]
public abstract class ResourceKey : System.Windows.Markup.MarkupExtension
[<System.Windows.Markup.MarkupExtensionReturnType(typeof(System.Windows.ResourceKey))>]
type ResourceKey = class
    inherit MarkupExtension
Public MustInherit Class ResourceKey
Inherits MarkupExtension
繼承
ResourceKey
衍生
屬性

備註

除了在資源元件中提供簡單索引鍵偵測的通用基類以外,這個類別不提供任何功能。

資源索引鍵是類型的字串或實例。 這個類別支援以其他物件值為基礎的類別,其中傳入的物件可確保所產生資源索引鍵的唯一性。

建構函式

ResourceKey()

初始化衍生自 ResourceKey 之類別的新執行個體。

屬性

Assembly

取得組件 (Assembly) 物件,這個物件表示在哪個組件字典中尋找與這個索引鍵相關聯的值。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ProvideValue(IServiceProvider)

傳回這個 ResourceKey。 這個類別的執行個體通常會當做字典中的索引鍵來使用。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於