MarkupExtensionReturnTypeAttribute Konstruktory

Definice

Inicializuje novou instanci MarkupExtensionReturnTypeAttribute třídy .

Přetížení

MarkupExtensionReturnTypeAttribute()

Inicializuje novou instanci MarkupExtensionReturnTypeAttribute třídy .

MarkupExtensionReturnTypeAttribute(Type)

Inicializuje novou instanci MarkupExtensionReturnTypeAttribute třídy pomocí poskytnuté Type.

MarkupExtensionReturnTypeAttribute(Type, Type)
Zastaralé.

Zastaralé; nepoužívejte.

MarkupExtensionReturnTypeAttribute()

Inicializuje novou instanci MarkupExtensionReturnTypeAttribute třídy .

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

Platí pro

MarkupExtensionReturnTypeAttribute(Type)

Inicializuje novou instanci MarkupExtensionReturnTypeAttribute třídy pomocí poskytnuté Type.

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

Parametry

returnType
Type

Návratový typ, který tento atribut hlásí.

Poznámky

Odvozená MarkupExtension vlastní třída by měla použít tento atribut k označení typově bezpečného návratového typu, který je vrácen jeho ProvideValue implementací.

Platí pro

MarkupExtensionReturnTypeAttribute(Type, Type)

Upozorně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.

Zastaralé; nepoužívejte.

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)

Parametry

returnType
Type

Návratový typ, který tento atribut rozhraní .NET Framework hlásí.

expressionType
Type

Zastaralé; nepoužívejte.

Atributy

Poznámky

Forma MarkupExtensionReturnTypeAttribute , která hlásí druhý parametr pro výraz, je zastaralá nebo zastaralá a neměla by se používat. Pokud je výraz nebo jiný typ nebo model pro odložené vyhodnocení možným návratovým typem, měli byste místo toho použít atribut s návratovým typem Object .

Platí pro