Edit

Share via


XamlType.LookupInvoker Method

Definition

Returns a XamlTypeInvoker that is associated with this XamlType.

C#
protected virtual System.Xaml.Schema.XamlTypeInvoker LookupInvoker();

Returns

The XamlTypeInvoker information for this XamlType; otherwise, null.

Remarks

This method can be invoked by calls to Invoker.

The default implementation does not require that a XamlType be constructed by using one of the constructors that pass an initial XamlTypeInvoker. However, an UnderlyingType value must exist for the XamlType; otherwise, the default implementation returns null.

Override this method if you also create a derived class from XamlTypeInvoker and intend to return the derived class. If you return null, Invoker returns XamlTypeInvoker.UnknownInvoker to callers.

Applies to

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