XamlType.TypeArguments 屬性

定義

當這個 XamlType 表示泛型時,取得型別引數的清單。

public:
 property System::Collections::Generic::IList<System::Xaml::XamlType ^> ^ TypeArguments { System::Collections::Generic::IList<System::Xaml::XamlType ^> ^ get(); };
public System.Collections.Generic.IList<System.Xaml.XamlType> TypeArguments { get; }
member this.TypeArguments : System.Collections.Generic.IList<System.Xaml.XamlType>
Public ReadOnly Property TypeArguments As IList(Of XamlType)

屬性值

型別引數型別的清單,如果這個 XamlType 不表示泛型,則為 null

備註

在某些情況下 XamlType ,呼叫 參數會 TypeArguments 傳回仍在開啟類型的清單。 在此情況下,一或多個傳 XamlType 回的值會有 的 XamlType.Name 預留位置值,例如 T ,表示泛型仍然開啟。 如果您從 呼叫 GetXamlType 取得 ,而不是從 XAML 讀取器實作取得 XamlType ,就會發生此案例。

適用於