XamlType.LookupItemType 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.
Returns a value that provides the type information for the Items
property of this XamlType.
protected:
virtual System::Xaml::XamlType ^ LookupItemType();
protected virtual System.Xaml.XamlType LookupItemType();
abstract member LookupItemType : unit -> System.Xaml.XamlType
override this.LookupItemType : unit -> System.Xaml.XamlType
Protected Overridable Function LookupItemType () As XamlType
A XamlType object for the type of the items in the collection; otherwise, null
if this XamlType does not represent a collection.
This method can be invoked by calls to ItemType.
The default implementation can use CLR reflection concepts, such as checking for an Add
method by MethodInfo and using the ParameterInfo; checking IsArray; and checking BaseType and trying the same logic there.
Override this method if you want ItemType to use different logic. Cases where LookupCollectionKind returns XamlCollectionKind.None 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: