Redigera

Dela via


XamlSchemaContext.GetXamlType Method

Definition

Returns a XamlType that is based on either a CLR or XAML type identifier.

Overloads

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.

GetXamlType(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

type
Type

The type to get a XamlType for.

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

GetXamlType(XamlTypeName)

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

A component of xamlTypeName (Name or Namespace) is null.

xamlTypeName is null.

See also

Applies to

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.

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