XamlTypeName Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the XamlTypeName class.
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. |
Initializes a new instance of the XamlTypeName class.
public:
XamlTypeName();
public XamlTypeName ();
Public Sub New ()
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 |
Initializes a new instance of the XamlTypeName class, based on an existing XamlType.
public:
XamlTypeName(System::Xaml::XamlType ^ xamlType);
public XamlTypeName (System.Xaml.XamlType xamlType);
new System.Xaml.Schema.XamlTypeName : System.Xaml.XamlType -> System.Xaml.Schema.XamlTypeName
Public Sub New (xamlType As XamlType)
Parameters
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 |
Initializes a new instance of the XamlTypeName class, based on name and namespace strings.
public:
XamlTypeName(System::String ^ xamlNamespace, System::String ^ name);
public XamlTypeName (string xamlNamespace, string name);
new System.Xaml.Schema.XamlTypeName : string * string -> System.Xaml.Schema.XamlTypeName
Public Sub New (xamlNamespace As String, name As String)
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 |
Initializes a new instance of the XamlTypeName class, based on name and namespace strings as well as an array of type arguments.
public:
XamlTypeName(System::String ^ xamlNamespace, System::String ^ name, System::Collections::Generic::IEnumerable<System::Xaml::Schema::XamlTypeName ^> ^ typeArguments);
public XamlTypeName (string xamlNamespace, string name, System.Collections.Generic.IEnumerable<System.Xaml.Schema.XamlTypeName> typeArguments);
new System.Xaml.Schema.XamlTypeName : string * string * seq<System.Xaml.Schema.XamlTypeName> -> System.Xaml.Schema.XamlTypeName
Public Sub New (xamlNamespace As String, name As String, typeArguments As IEnumerable(Of XamlTypeName))
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: