Share via


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 ,则可能会出现这种情况。

适用于