XamlType.KeyType Property

Definition

Gets a value that provides the type information for the key property of this XamlType, if the XamlType represents a dictionary.

public:
 property System::Xaml::XamlType ^ KeyType { System::Xaml::XamlType ^ get(); };
public System.Xaml.XamlType KeyType { get; }
member this.KeyType : System.Xaml.XamlType
Public ReadOnly Property KeyType As XamlType

Property Value

XamlType

A XamlType object for the type of the key for dictionary usage, otherwise, null, if this XamlType does not represent a dictionary.

Remarks

This property is only relevant if this XamlType represents a dictionary (IsDictionary is true).

If you do not use the default internal CLR reflection technique for a XamlType, calls to this property can invoke LookupKeyType overrides on XamlType derived classes. For more information about return values and other behavior, see the documentation for LookupKeyType on this type.

Applies to