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)

new : 
        unknownTypeNamespace:string * 
        unknownTypeName:string * 
        typeArguments:IList<XamlType> * 
        schemaContext:XamlSchemaContext -> XamlType

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) a null reference (Nothing in Visual Basic), 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 a null reference (Nothing in Visual Basic).

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.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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
Show:
© 2014 Microsoft