XamlType.LookupInvoker Méthode

Définition

Retourne un XamlTypeInvoker associé à ce XamlType.

protected:
 virtual System::Xaml::Schema::XamlTypeInvoker ^ LookupInvoker();
protected virtual System.Xaml.Schema.XamlTypeInvoker LookupInvoker ();
abstract member LookupInvoker : unit -> System.Xaml.Schema.XamlTypeInvoker
override this.LookupInvoker : unit -> System.Xaml.Schema.XamlTypeInvoker
Protected Overridable Function LookupInvoker () As XamlTypeInvoker

Retours

XamlTypeInvoker

Informations XamlTypeInvoker pour ce XamlType ; sinon, null.

Remarques

Cette méthode peut être appelée par des appels à Invoker.

L’implémentation par défaut ne nécessite pas qu’une XamlType construction soit construite à l’aide de l’un des constructeurs qui passent un initial XamlTypeInvoker. Toutefois, une UnderlyingType valeur doit exister pour le XamlType; sinon, l’implémentation par défaut retourne null.

Remplacez cette méthode si vous créez également une classe dérivée à partir XamlTypeInvoker de laquelle vous souhaitez retourner la classe dérivée. Si vous retournez null, Invoker retourne XamlTypeInvoker.UnknownInvoker aux appelants.

S’applique à