This documentation is archived and is not being maintained.

ResourceKey Class

Provides an abstract base class for various resource keys.

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

public abstract class ResourceKey : MarkupExtension
This class is abstract; see Inheritance Hierarchy for derived non-abstract classes usable in XAML.

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.

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0