XamlType.LookupContentWrappers 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
protected:
virtual System::Collections::Generic::IList<System::Xaml::XamlType ^> ^ LookupContentWrappers();
C#
protected virtual System.Collections.Generic.IList<System.Xaml.XamlType> LookupContentWrappers();
abstract member LookupContentWrappers : unit -> System.Collections.Generic.IList<System.Xaml.XamlType>
override this.LookupContentWrappers : unit -> System.Collections.Generic.IList<System.Xaml.XamlType>
Protected Overridable Function LookupContentWrappers () As IList(Of XamlType)
XamlType 值的清單,表示這個 XamlType 的內容包裝函式。
內容包裝函式是一種類別,當該集合中使用的類型與類型系統不連續時,代表內容類型類型。 內容包裝函式的集合專案類型預期會以某種方式 Object 限制于或中性物件對等專案。 不過,這項限制只會由使用該類型之屬性的設計或用途強制執行,而不是由類型系統強制執行。 類型上可以存在一個以上的內容包裝函式。
如需 WPF XAML 實作的範例類別和案例,請參閱 InlineCollection 。
產品 | 版本 |
---|---|
.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 |