XamlType Constructor (String^, String^, IList<XamlType^>^, XamlSchemaContext^)

.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.

Initializes a new instance of the XamlType class based on the XAML namespace and a string name for the type. This constructor is exclusively for analysis and XAML-node recording of type usages that are known to not have backing in the supporting type system and XAML schema context.

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

	String^ unknownTypeNamespace,
	String^ unknownTypeName,
	IList<XamlType^>^ typeArguments,
	XamlSchemaContext^ schemaContext


Type: System::String^

The XAML namespace for the type, as a string.

Type: System::String^

The name of the type in the provided unknownTypeNamespace XAML namespace.

Type: System.Collections.Generic::IList<XamlType^>^

The type arguments for a XamlType that represents a generic type. Can be (and often is) null, which indicates that the represented type is not a generic type.

Type: System.Xaml::XamlSchemaContext^

XAML schema context for XAML readers or XAML writers.

Exception Condition

One or more of unknownTypeNamespace, unknownTypeName, or schemaContext are null.

Use this constructor only for "unknown" types where a XAML type that maps to an underlying type system is unavailable. This constructor might not produce a result where XamlType::IsUnknown is true. Instead, the default reflector logic reports the underlying type as XamlLanguage::Object. However, this behavior can change because of the LookupIsUnknown override.

.NET Framework
Available since 4.0
Return to top