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

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)

public XamlType(
	string unknownTypeNamespace,
	string unknownTypeName,
	IList<XamlType> typeArguments,
	XamlSchemaContext schemaContext
)

Parameters

unknownTypeNamespace
Type: System.String
The XAML namespace for the type, as a string.
unknownTypeName
Type: System.String
The name of the type in the provided unknownTypeNamespace XAML namespace.
typeArguments
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.
schemaContext
Type: System.Xaml.XamlSchemaContext
XAML schema context for XAML readers or XAML writers.

ExceptionCondition
ArgumentNullException

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

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft