共用方式為


XamlType.LookupMarkupExtensionReturnType 方法

定義

傳回值,這個值提供此 XamlType (如果表示標記延伸的話) 傳回之 ProvideValue 的型別資訊。

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

傳回

XamlType

標記延伸使用方式之傳回型別的 XamlType 物件,如果這個 XamlType 不表示標記延伸,則為 null

備註

呼叫 即可叫 MarkupExtensionReturnType 用這個方法。

預設實作會根據讀取 MarkupExtensionReturnTypeAttribute 傳回 XamlType 。 它也可以檢查 BaseType 屬性是否在立即基礎類型上找不到任何屬性。 如果值無法使用,則會傳 null 回 。

如果您想要 MarkupExtensionReturnType 使用不同的邏輯,請覆寫此方法。

適用於