XamlSchemaContext.GetXamlType Método

Definição

Devolve um XamlType que se baseia num identificador de tipo CLR ou XAML.

Sobrecargas

Name Description
GetXamlType(Type)

Devolve um XamlType que é baseado num identificador de tipo CLR.

GetXamlType(XamlTypeName)

Devolve um XamlType que é baseado num nome de tipo de sistema XAML.

GetXamlType(String, String, XamlType[])

Devolve um XamlType que se baseia num namespace XAML e numa string para o nome do tipo. Esta assinatura pode especificar os argumentos de tipo para casos em que o tipo desejado é genérico.

GetXamlType(Type)

Devolve um XamlType que é baseado num identificador de tipo CLR.

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

Parâmetros

type
Type

Do tipo que se faz XamlType uma pergunta para.

Devoluções

O XamlType que corresponde à entrada type.

Exceções

type é null.

Observações

Esta sobrecarga assume que está a usar o CLR para o sistema do tipo backing. Se não estiver a usar o sistema de tipos CLR, use GetXamlType(XamlTypeName).

Aplica-se a

GetXamlType(XamlTypeName)

Devolve um XamlType que é baseado num nome de tipo de sistema XAML.

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

Parâmetros

xamlTypeName
XamlTypeName

O nome do tipo XAML para obter um XamlType for.

Devoluções

O XamlType que corresponde à entrada xamlTypeName.

Exceções

Um componente de xamlTypeName (Name ou Namespace) é null.

xamlTypeName é null.

Ver também

Aplica-se a

GetXamlType(String, String, XamlType[])

Devolve um XamlType que se baseia num namespace XAML e numa string para o nome do tipo. Esta assinatura pode especificar os argumentos de tipo para casos em que o tipo desejado é genérico.

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

Parâmetros

xamlNamespace
String

O espaço de nomes XAML que contém o tipo desejado.

name
String

O nome da cadeia do tipo desejado.

typeArguments
XamlType[]

Os argumentos do tipo inicialização para um tipo genérico.

Devoluções

O XamlType que corresponde aos critérios de entrada.

Aplica-se a