XamlTypeName Constructors

Definition

Initializes a new instance of the XamlTypeName class.

Overloads

XamlTypeName()

Initializes a new instance of the XamlTypeName class.

XamlTypeName(XamlType)

Initializes a new instance of the XamlTypeName class, based on an existing XamlType.

XamlTypeName(String, String)

Initializes a new instance of the XamlTypeName class, based on name and namespace strings.

XamlTypeName(String, String, IEnumerable<XamlTypeName>)

Initializes a new instance of the XamlTypeName class, based on name and namespace strings as well as an array of type arguments.

XamlTypeName()

Initializes a new instance of the XamlTypeName class.

public XamlTypeName ();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

XamlTypeName(XamlType)

Initializes a new instance of the XamlTypeName class, based on an existing XamlType.

public XamlTypeName (System.Xaml.XamlType xamlType);

Parameters

xamlType
XamlType

An existing XamlType.

Exceptions

xamlType is null.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

XamlTypeName(String, String)

Initializes a new instance of the XamlTypeName class, based on name and namespace strings.

public XamlTypeName (string xamlNamespace, string name);

Parameters

xamlNamespace
String

The XAML namespace that contains name.

name
String

The name of the type to create a XamlTypeName for.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

XamlTypeName(String, String, IEnumerable<XamlTypeName>)

Initializes a new instance of the XamlTypeName class, based on name and namespace strings as well as an array of type arguments.

public XamlTypeName (string xamlNamespace, string name, System.Collections.Generic.IEnumerable<System.Xaml.Schema.XamlTypeName> typeArguments);

Parameters

xamlNamespace
String

The XAML namespace that contains name.

name
String

The name of the type to create a XamlTypeName for.

typeArguments
IEnumerable<XamlTypeName>

An array of type arguments, each of which must be a XamlTypeName.

Remarks

This is the signature to use if you are specifying a generic type and type arguments for that type.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9