语言

XamlType.ConstructionRequiresArguments 属性

定义

获取一个值,该值指示这 XamlType 是否必须具有参数(通过 x:TypeArguments泛型约束、初始化文本或其他 XAML 技术)来构造类型的有效实例。

public:
 property bool ConstructionRequiresArguments { bool get(); };
public bool ConstructionRequiresArguments { get; }
member this.ConstructionRequiresArguments : bool
Public ReadOnly Property ConstructionRequiresArguments As Boolean

属性值

true 如果实例的构造需要一些参数值,则为 ;否则,为 false.

注解

如果不对某个XamlType方法使用默认的内部 CLR 反射技术,则对此属性的调用可以在派生类上LookupConstructionRequiresArguments调用XamlType重写。 有关返回值和其他行为的详细信息,请参阅有关此类型的文档 LookupConstructionRequiresArguments 。

适用于