Modifica

Condividi tramite


ResourceKey Class

Definition

Provides an abstract base class for various resource keys.

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
Inheritance
ResourceKey
Derived
Attributes

Remarks

This class provides no functionality except to supply a common base class for simple key detection in resource components.

Resource keys are either strings or instances of a type. This class provides support for classes that base key values on other object values, where the objects passed in assure uniqueness of the generated resource keys.

Constructors

ResourceKey()

Initializes a new instance of a class derived from ResourceKey.

Properties

Assembly

Gets an assembly object that indicates which assembly's dictionary to look in for the value associated with this key.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ProvideValue(IServiceProvider)

Returns this ResourceKey. Instances of this class are typically used as a key in a dictionary.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to