XamlDirective.LookupType 方法

定义

返回成员所使用的类型的 XamlType

protected override sealed System.Xaml.XamlType LookupType ();

返回

成员所使用的类型的 XamlType

注解

实现 XamlDirective 仅调用 base,不执行其他任何作用。 基实现基于内部反射或检查 null 值 UnderlyingMember返回结果,并按该顺序进行处理。 XamlDirective 密封此虚拟成员;因此,所有 XamlDirective 类型和所有预定义的 XAML 指令都必须使用此行为。

有关信息Type携带的详细信息,请参阅 中的XamlMember.LookupType“备注”。

适用于

产品 版本
.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

另请参阅