Export (0) Print
Expand All

XamlType.LookupItemType Method

.NET Framework 4.6 and 4.5

Returns a value that provides the type information for the Items property of this XamlType.

Namespace:  System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

protected virtual XamlType LookupItemType()

Return Value

Type: System.Xaml.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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft