MarkupExtensionReturnTypeAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the MarkupExtensionReturnTypeAttribute class.
Overloads
MarkupExtensionReturnTypeAttribute() |
Initializes a new instance of the MarkupExtensionReturnTypeAttribute class. |
MarkupExtensionReturnTypeAttribute(Type) |
Initializes a new instance of the MarkupExtensionReturnTypeAttribute class using the provided Type. |
MarkupExtensionReturnTypeAttribute(Type, Type) |
Obsolete.
Deprecated; do not use. |
MarkupExtensionReturnTypeAttribute()
Initializes a new instance of the MarkupExtensionReturnTypeAttribute class.
public:
MarkupExtensionReturnTypeAttribute();
public MarkupExtensionReturnTypeAttribute ();
Public Sub New ()
Applies to
MarkupExtensionReturnTypeAttribute(Type)
Initializes a new instance of the MarkupExtensionReturnTypeAttribute class using the provided 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)
Parameters
- returnType
- Type
The return type that this attribute reports.
Remarks
A MarkupExtension derived custom class should apply this attribute to indicate the type-safe return type that is returned by its ProvideValue implementation.
Applies to
MarkupExtensionReturnTypeAttribute(Type, Type)
Caution
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.
Deprecated; do not 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)
Parameters
- returnType
- Type
The return type that this .NET Framework attribute reports.
- expressionType
- Type
Deprecated; do not use.
- Attributes
Remarks
The form of MarkupExtensionReturnTypeAttribute that reports a second parameter for an expression is deprecated/obsolete and should not be used. If an expression or other type or model for deferred evaluation is a possible return type, you should attribute with a return type of Object instead.