TemplateKey 類別

定義

當做為資料樣板的資源索引鍵使用時,允許資料樣板參與查詢處理序。When used as a resource key for a data template, allows the data template to participate in the lookup process.

public ref class TemplateKey abstract : System::Windows::ResourceKey, System::ComponentModel::ISupportInitialize
[System.ComponentModel.TypeConverter(typeof(System.Windows.Markup.TemplateKeyConverter))]
public abstract class TemplateKey : System.Windows.ResourceKey, System.ComponentModel.ISupportInitialize
type TemplateKey = class
    inherit ResourceKey
    interface ISupportInitialize
Public MustInherit Class TemplateKey
Inherits ResourceKey
Implements ISupportInitialize
繼承
衍生
屬性
實作

建構函式

TemplateKey(TemplateKey+TemplateType)

使用指定的樣板型別,初始化 TemplateKey 類別的新執行個體。Initializes a new instance of the TemplateKey class with the specified template type. 這個建構函式受到保護。This constructor is protected.

TemplateKey(TemplateKey+TemplateType, Object)

使用指定的參數,初始化 TemplateKey 類別的新執行個體。Initializes a new instance of the TemplateKey class with the specified parameters. 這個建構函式受到保護。This constructor is protected.

屬性

Assembly

取得或設定包含樣板定義的組件 (Assembly)。Gets or sets the assembly that contains the template definition.

DataType

取得或設定為其設計樣板的型別。Gets or sets the type for which the template is designed.

方法

Equals(Object)

傳回值,指出特定的執行個體是否與 TemplateKey 的這個執行個體相同。Returns a value that indicates whether the given instance is identical to this instance of TemplateKey.

GetHashCode()

傳回這個 TemplateKey 執行個體的雜湊碼。Returns the hash code for this instance of TemplateKey.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ProvideValue(IServiceProvider)

傳回這個 ResourceKeyReturns this ResourceKey. 這個類別的執行個體通常會當做字典中的索引鍵來使用。Instances of this class are typically used as a key in a dictionary.

(繼承來源 ResourceKey)
ToString()

傳回這個 TemplateKey 的字串表示。Returns a string representation of this TemplateKey.

明確介面實作

ISupportInitialize.BeginInit()

這個成員支援 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基礎結構,但是您不可以從程式碼直接使用它。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

ISupportInitialize.EndInit()

這個成員支援 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基礎結構,但是您不可以從程式碼直接使用它。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

適用於

另請參閱