语言

XamlObjectWriterSettings.PreferUnconvertedDictionaryKeys 属性

定义

获取或设置一个值,该值确定是否在编写对象图表示形式之前禁用在组件XamlObjectWriter上运行K类型转换的默认Dictionary<TKey,TValue>功能。

public:
 property bool PreferUnconvertedDictionaryKeys { bool get(); void set(bool value); };
public bool PreferUnconvertedDictionaryKeys { get; set; }
member this.PreferUnconvertedDictionaryKeys : bool with get, set
Public Property PreferUnconvertedDictionaryKeys As Boolean

属性值

true 如果 K 应禁用对象的类型转换 Dictionary<TKey,TValue> ,则为 。 如果对对象执行 类型转换,则为 />。 默认值为 false。

注解

有关类型转换功能的详细信息K,请参阅“备注”。XamlObjectWriter

适用于