LookupConstructionRequiresArguments Method

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
Available since 4.0
Return to top
© 2015 Microsoft