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

.NET Framework (current version)
 
System_CAPS_noteNote

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 a string name for the type.

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

protected XamlType(
	string typeName,
	IList<XamlType> typeArguments,
	XamlSchemaContext schemaContext
)

Parameters

typeName
Type: System.String

The name of the type to create.

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 and XAML writers.

Exception Condition
ArgumentNullException

One or more of typeName or schemaContext are null.

This is a protected constructor. No current public derived classes exist that use this particular path for construction. As a consumer of the existing XamlType, you must use the other constructor signatures (XamlType(Type, XamlSchemaContext, XamlTypeInvoker), XamlType(Type, XamlSchemaContext), or XamlType(String, String, IList<XamlType>, XamlSchemaContext)) to initialize a XamlType object.

.NET Framework
Available since 4.0
Return to top
Show: