TemplateKey Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When used as a resource key for a data template, allows the data template to participate in the lookup process.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)


[<AbstractClass>]
[<TypeConverterAttribute(typeof(TemplateKeyConverter))>]
type TemplateKey = 
    class
        inherit ResourceKey
        interface ISupportInitialize
    end

NameDescription
System_CAPS_protmethodTemplateKey(TemplateKey.TemplateType)

Initializes a new instance of the TemplateKey class with the specified template type. This constructor is protected.

System_CAPS_protmethodTemplateKey(TemplateKey.TemplateType, Object)

Initializes a new instance of the TemplateKey class with the specified parameters. This constructor is protected.

NameDescription
System_CAPS_pubpropertyAssembly

Gets or sets the assembly that contains the template definition.(Overrides ResourceKey.Assembly.)

System_CAPS_pubpropertyDataType

Gets or sets the type for which the template is designed.

NameDescription
System_CAPS_pubmethodEquals(Object)

Returns a value that indicates whether the given instance is identical to this instance of TemplateKey.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance of TemplateKey.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodProvideValue(IServiceProvider)

Returns this ResourceKey. Instances of this class are typically used as a key in a dictionary. (Inherited from ResourceKey.)

System_CAPS_pubmethodToString()

Returns a string representation of this TemplateKey.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISupportInitialize.BeginInit()

This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

System_CAPS_pubinterfaceSystem_CAPS_privmethodISupportInitialize.EndInit()

This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: