XamlType.LookupConstructionRequiresArguments Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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