ValueTranslationService.HasValueTranslation 方法
[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]
确定是否应针对指定的类型转换指定的属性。
命名空间: Microsoft.Windows.Design.Services
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public MustOverride Function HasValueTranslation ( _
itemType As Type, _
identifier As PropertyIdentifier _
) As Boolean
public abstract bool HasValueTranslation(
Type itemType,
PropertyIdentifier identifier
)
public:
virtual bool HasValueTranslation(
Type^ itemType,
PropertyIdentifier identifier
) abstract
abstract HasValueTranslation :
itemType:Type *
identifier:PropertyIdentifier -> bool
public abstract function HasValueTranslation(
itemType : Type,
identifier : PropertyIdentifier
) : boolean
参数
- itemType
类型:System.Type
在确定是否应转换 property 时所针对的类型。
- identifier
类型:Microsoft.Windows.Design.Metadata.PropertyIdentifier
要检查的属性的标识符。
返回值
类型:System.Boolean
如果指定的属性应针对指定的类型进行转换,则该值为 true;否则该值为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.Services 命名空间