MarkupExtensionReturnTypeAttribute Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy MarkupExtensionReturnTypeAttribute.
Przeciążenia
MarkupExtensionReturnTypeAttribute() |
Inicjuje nowe wystąpienie klasy MarkupExtensionReturnTypeAttribute. |
MarkupExtensionReturnTypeAttribute(Type) |
Inicjuje MarkupExtensionReturnTypeAttribute nowe wystąpienie klasy przy użyciu podanego Typeelementu . |
MarkupExtensionReturnTypeAttribute(Type, Type) |
Przestarzałe.
Przestarzałe; nie należy używać. |
MarkupExtensionReturnTypeAttribute()
Inicjuje nowe wystąpienie klasy MarkupExtensionReturnTypeAttribute.
public:
MarkupExtensionReturnTypeAttribute();
public MarkupExtensionReturnTypeAttribute ();
Public Sub New ()
Dotyczy
MarkupExtensionReturnTypeAttribute(Type)
Inicjuje MarkupExtensionReturnTypeAttribute nowe wystąpienie klasy przy użyciu podanego Typeelementu .
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
Zwracany typ zgłaszany przez ten atrybut.
Uwagi
Pochodna klasa niestandardowa MarkupExtension powinna zastosować ten atrybut, aby wskazać typ powrotu bezpiecznego typu zwrócony przez jego ProvideValue implementację.
Dotyczy
MarkupExtensionReturnTypeAttribute(Type, Type)
Przestroga
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.
Przestarzałe; nie należy używać.
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
Zwracany typ, który ten .NET Framework raportów atrybutów.
- expressionType
- Type
Przestarzałe; nie należy używać.
- Atrybuty
Uwagi
Forma raportu drugiego parametru MarkupExtensionReturnTypeAttribute wyrażenia jest przestarzała/przestarzała i nie powinna być używana. Jeśli wyrażenie lub inny typ lub model do oceny odroczonej jest możliwym typem zwracanym, należy atrybut z zwracanym typem Object zamiast.
Dotyczy
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla