Поделиться через


KeyAttributePair<T> Structure

Maps a string key to an Attribute instance.

Namespace:  Microsoft.Windows.Design.PropertyEditing
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Structure KeyAttributePair(Of T As Attribute)
public struct KeyAttributePair<T>
where T : Attribute
generic<typename T>
where T : Attribute
public value class KeyAttributePair
[<Sealed>]
type KeyAttributePair<'T when 'T : Attribute> =  struct end
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of attribute.

The KeyAttributePair<T> type exposes the following members.

Constructors

  Name Description
Public method KeyAttributePair<T> Initializes a new instance of the KeyAttributePair<T> class.

Top

Properties

  Name Description
Public property Key Gets the key for the current KeyAttributePair<T>.
Public property Value Gets the Attribute for the current KeyAttributePair<T>.

Top

Methods

  Name Description
Public method Equals Determines whether the specified KeyAttributePair<T> is equal to the current KeyAttributePair<T>. (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for the current KeyAttributePair<T>. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether the specified KeyAttributePair<T> instances are considered equal.
Public operatorStatic member Inequality Determines whether the specified KeyAttributePair<T> instances are considered not equal.

Top

Thread Safety

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

See Also

Reference

Microsoft.Windows.Design.PropertyEditing Namespace

Other Resources

Property Editing Architecture

WPF Designer Extensibility