MarkupExtensionReturnTypeAttribute Constructores

Definición

Inicializa una nueva instancia de la clase MarkupExtensionReturnTypeAttribute.

Sobrecargas

MarkupExtensionReturnTypeAttribute()

Inicializa una nueva instancia de la clase MarkupExtensionReturnTypeAttribute.

MarkupExtensionReturnTypeAttribute(Type)

Inicializa una nueva instancia de la clase MarkupExtensionReturnTypeAttribute utilizando el Type proporcionado.

MarkupExtensionReturnTypeAttribute(Type, Type)
Obsoletos.

En desuso, no lo use.

MarkupExtensionReturnTypeAttribute()

Inicializa una nueva instancia de la clase MarkupExtensionReturnTypeAttribute.

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

Se aplica a

MarkupExtensionReturnTypeAttribute(Type)

Inicializa una nueva instancia de la clase MarkupExtensionReturnTypeAttribute utilizando el Type proporcionado.

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

Tipo de valor devuelto que este atributo notifica.

Comentarios

Una MarkupExtension clase personalizada derivada debe aplicar este atributo para indicar el tipo de valor devuelto con seguridad de tipos devuelto por su ProvideValue implementación.

Se aplica a

MarkupExtensionReturnTypeAttribute(Type, Type)

Precaución

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.

En desuso, no lo 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

Tipo de valor devuelto que notifica este atributo de .NET Framework.

expressionType
Type

En desuso, no lo use.

Atributos

Comentarios

La forma de que informa de MarkupExtensionReturnTypeAttribute un segundo parámetro para una expresión está en desuso o obsoleto y no debe usarse. Si una expresión u otro tipo o modelo para la evaluación diferida es un tipo de valor devuelto posible, debe atribuirse con un tipo de valor devuelto de Object en su lugar.

Se aplica a