XamlSchemaContext.GetXamlType Method
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.
Returns a XamlType that is based on either a CLR or XAML type identifier.
GetXamlType(Type) |
Returns a XamlType that is based on a CLR type identifier. |
GetXamlType(XamlTypeName) |
Returns a XamlType that is based on a XAML system type name. |
GetXamlType(String, String, XamlType[]) |
Returns a XamlType that is based on a XAML namespace and a string for the type name. This signature can specify the type arguments for cases where the desired type is a generic type. |
Returns a XamlType that is based on a CLR type identifier.
public:
virtual System::Xaml::XamlType ^ GetXamlType(Type ^ type);
public virtual System.Xaml.XamlType GetXamlType (Type type);
abstract member GetXamlType : Type -> System.Xaml.XamlType
override this.GetXamlType : Type -> System.Xaml.XamlType
Public Overridable Function GetXamlType (type As Type) As XamlType
Parameters
Returns
The XamlType that matches the input type
.
Exceptions
type
is null
.
Remarks
This overload assumes that you are using the CLR for the backing type system. If you are not using the CLR type system, use GetXamlType(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 |
Returns a XamlType that is based on a XAML system type name.
public:
System::Xaml::XamlType ^ GetXamlType(System::Xaml::Schema::XamlTypeName ^ xamlTypeName);
public System.Xaml.XamlType GetXamlType (System.Xaml.Schema.XamlTypeName xamlTypeName);
member this.GetXamlType : System.Xaml.Schema.XamlTypeName -> System.Xaml.XamlType
Public Function GetXamlType (xamlTypeName As XamlTypeName) As XamlType
Parameters
- xamlTypeName
- XamlTypeName
The XAML type name to get a XamlType for.
Returns
The XamlType that matches the input xamlTypeName
.
Exceptions
xamlTypeName
is null
.
See also
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 |
Returns a XamlType that is based on a XAML namespace and a string for the type name. This signature can specify the type arguments for cases where the desired type is a generic type.
protected public:
virtual System::Xaml::XamlType ^ GetXamlType(System::String ^ xamlNamespace, System::String ^ name, ... cli::array <System::Xaml::XamlType ^> ^ typeArguments);
protected internal virtual System.Xaml.XamlType GetXamlType (string xamlNamespace, string name, params System.Xaml.XamlType[] typeArguments);
abstract member GetXamlType : string * string * System.Xaml.XamlType[] -> System.Xaml.XamlType
override this.GetXamlType : string * string * System.Xaml.XamlType[] -> System.Xaml.XamlType
Protected Friend Overridable Function GetXamlType (xamlNamespace As String, name As String, ParamArray typeArguments As XamlType()) As XamlType
Parameters
- xamlNamespace
- String
The XAML namespace that contains the desired type.
- name
- String
The string name of the desired type.
- typeArguments
- XamlType[]
The initialization type arguments for a generic type.
Returns
The XamlType that matches the input criteria.
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: