ModelPropertyEntryToOwnerActivityConverter.Convert 方法

定义

ModelPropertyEntry 转换为拥有属性的 ModelItem

public:
 virtual System::Object ^ Convert(System::Object ^ value, Type ^ targetType, System::Object ^ parameter, System::Globalization::CultureInfo ^ culture);
public object Convert (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
abstract member Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
override this.Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
Public Function Convert (value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object

参数

value
Object

绑定目标生成的值。

targetType
Type

要转换为的类型。

parameter
Object

要使用的转换器参数。 您可以传入布尔值。 默认情况下,此转换器将始终返回类型为 Activity 的父模型项。 如果将 false 传递到此方法,则转换器将只返回第一个父模型项,该模型项可能不是指向 Activity 的模型项。

culture
CultureInfo

要用在转换器中的区域性。

返回

Object

返回 Object

实现

适用于