MarkupExtensionReturnTypeAttribute Construtores

Definição

Inicializa uma nova instância da classe MarkupExtensionReturnTypeAttribute.

Sobrecargas

MarkupExtensionReturnTypeAttribute()

Inicializa uma nova instância da classe MarkupExtensionReturnTypeAttribute.

MarkupExtensionReturnTypeAttribute(Type)

Inicializa uma nova instância da classe MarkupExtensionReturnTypeAttribute usando o Type fornecido.

MarkupExtensionReturnTypeAttribute(Type, Type)
Obsoleto.

Preterido; não use.

MarkupExtensionReturnTypeAttribute()

Inicializa uma nova instância da classe MarkupExtensionReturnTypeAttribute.

public:
 MarkupExtensionReturnTypeAttribute();
public MarkupExtensionReturnTypeAttribute ();
Public Sub New ()

Aplica-se a

MarkupExtensionReturnTypeAttribute(Type)

Inicializa uma nova instância da classe MarkupExtensionReturnTypeAttribute usando o Type fornecido.

public:
 MarkupExtensionReturnTypeAttribute(Type ^ returnType);
public MarkupExtensionReturnTypeAttribute (Type returnType);
new System.Windows.Markup.MarkupExtensionReturnTypeAttribute : Type -> System.Windows.Markup.MarkupExtensionReturnTypeAttribute
Public Sub New (returnType As Type)

Parâmetros

returnType
Type

O tipo de retorno que esse atributo relata.

Comentários

Uma MarkupExtension classe personalizada derivada deve aplicar esse atributo para indicar o tipo de retorno type-safe retornado por sua ProvideValue implementação.

Aplica-se a

MarkupExtensionReturnTypeAttribute(Type, Type)

Cuidado

The expressionType argument is not used by the XAML parser. To specify the expected return type, use MarkupExtensionReturnTypeAttribute(Type). To specify custom handling for expression types, use XamlSetMarkupExtensionAttribute.

Preterido; não use.

public:
 MarkupExtensionReturnTypeAttribute(Type ^ returnType, Type ^ expressionType);
public MarkupExtensionReturnTypeAttribute (Type returnType, Type expressionType);
[System.Obsolete("The expressionType argument is not used by the XAML parser. To specify the expected return type, use MarkupExtensionReturnTypeAttribute(Type). To specify custom handling for expression types, use XamlSetMarkupExtensionAttribute.")]
public MarkupExtensionReturnTypeAttribute (Type returnType, Type expressionType);
new System.Windows.Markup.MarkupExtensionReturnTypeAttribute : Type * Type -> System.Windows.Markup.MarkupExtensionReturnTypeAttribute
[<System.Obsolete("The expressionType argument is not used by the XAML parser. To specify the expected return type, use MarkupExtensionReturnTypeAttribute(Type). To specify custom handling for expression types, use XamlSetMarkupExtensionAttribute.")>]
new System.Windows.Markup.MarkupExtensionReturnTypeAttribute : Type * Type -> System.Windows.Markup.MarkupExtensionReturnTypeAttribute
Public Sub New (returnType As Type, expressionType As Type)

Parâmetros

returnType
Type

O tipo de retorno que esse atributo .NET Framework relata.

expressionType
Type

Preterido; não use.

Atributos

Comentários

A forma de MarkupExtensionReturnTypeAttribute que relata um segundo parâmetro para uma expressão é preterida/obsoleta e não deve ser usada. Se uma expressão ou outro tipo ou modelo para avaliação adiada for um tipo de retorno possível, você deverá atribuir com um tipo de retorno de Object em vez disso.

Aplica-se a