ValueTranslationService.TranslatePropertyValue 方法
[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]
调用自定义逻辑以针对指定的类型和实例转换指定的属性,并指定要转换的值。
命名空间: Microsoft.Windows.Design.Services
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public MustOverride Function TranslatePropertyValue ( _
itemType As Type, _
item As ModelItem, _
identifier As PropertyIdentifier, _
value As Object _
) As Object
public abstract Object TranslatePropertyValue(
Type itemType,
ModelItem item,
PropertyIdentifier identifier,
Object value
)
public:
virtual Object^ TranslatePropertyValue(
Type^ itemType,
ModelItem^ item,
PropertyIdentifier identifier,
Object^ value
) abstract
abstract TranslatePropertyValue :
itemType:Type *
item:ModelItem *
identifier:PropertyIdentifier *
value:Object -> Object
public abstract function TranslatePropertyValue(
itemType : Type,
item : ModelItem,
identifier : PropertyIdentifier,
value : Object
) : Object
参数
- itemType
类型:System.Type
用户在设计器中设置属性值所针对的类型。
- item
类型:Microsoft.Windows.Design.Model.ModelItem
包含要转换的属性的项。
- identifier
类型:Microsoft.Windows.Design.Metadata.PropertyIdentifier
要转换的属性。
- value
类型:System.Object
用户在设计器中设置的值。
返回值
类型:System.Object
已转换的值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.Services 命名空间