MarkupExtensionReturnTypeAttribute Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro