XamlType.LookupKeyType Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
protected:
virtual System::Xaml::XamlType ^ LookupKeyType();
protected virtual System.Xaml.XamlType LookupKeyType();
abstract member LookupKeyType : unit -> System.Xaml.XamlType
override this.LookupKeyType : unit -> System.Xaml.XamlType
Protected Overridable Function LookupKeyType () As XamlType
A XamlType object for the type of the key for dictionary usage, or null
if this XamlType does not represent a dictionary.
This method can be invoked by calls to KeyType.
The default implementation can use CLR reflection concepts, such as checking for an Add
method by MethodInfo and using the ParameterInfo; and checking BaseType and trying the same logic there.
Override this method if you want KeyType to use different logic. Cases where LookupCollectionKind does not return XamlCollectionKind.Dictionary should return null
.
Product | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: