Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

XamlType.LookupConstructionRequiresArguments Method

.NET Framework 4.6 and 4.5

Returns a value that indicates whether this XamlType must have arguments (generic constraints through x:TypeArguments, initialization text, or other XAML techniques) to construct a valid instance of the type.

Namespace:  System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

protected virtual bool LookupConstructionRequiresArguments()

Return Value

Type: System.Boolean
true if construction of an instance requires some argument value; otherwise, false.

This method can be invoked when a caller gets a value from ConstructionRequiresArguments.

The default implementation returns false for types considered value types in the CLR type system. For other than value types, CLR reflection ConstructorInfo is used to determine whether a default constructor exists.

Override this method if you are not relying on default internal CLR reflection and are using metadata or other techniques for reporting the XAML type system information or schema information of a type.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft