MarkupExtensionReturnTypeAttribute Конструкторы

Определение

Инициализирует новый экземпляр класса MarkupExtensionReturnTypeAttribute.

Перегрузки

MarkupExtensionReturnTypeAttribute()

Инициализирует новый экземпляр класса MarkupExtensionReturnTypeAttribute.

MarkupExtensionReturnTypeAttribute(Type)

Инициализирует новый экземпляр класса MarkupExtensionReturnTypeAttribute с использованием предоставленного типа Type.

MarkupExtensionReturnTypeAttribute(Type, Type)
Устаревшие..

Не рекомендуется; не использовать.

MarkupExtensionReturnTypeAttribute()

Инициализирует новый экземпляр класса MarkupExtensionReturnTypeAttribute.

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

Применяется к

MarkupExtensionReturnTypeAttribute(Type)

Инициализирует новый экземпляр класса MarkupExtensionReturnTypeAttribute с использованием предоставленного типа 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)

Параметры

returnType
Type

Возвращаемый тип, сообщаемый этим атрибутом.

Комментарии

Производный MarkupExtension пользовательский класс должен применять этот атрибут для указания типобезопасного возвращаемого типа, возвращаемого его ProvideValue реализацией.

Применяется к

MarkupExtensionReturnTypeAttribute(Type, Type)

Внимание!

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);
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)

Параметры

returnType
Type

Тип возвращаемого значения, о который сообщает атрибут платформа .NET Framework.

expressionType
Type

Не рекомендуется; не использовать.

Атрибуты

Комментарии

Форма MarkupExtensionReturnTypeAttribute , которая сообщает второй параметр для выражения, является устаревшей или устаревшей и не должна использоваться. Если выражение или другой тип или модель для отложенной оценки является возможным типом возвращаемого значения, следует атрибутировать с типом возвращаемого Object значения .

Применяется к