SettingElement.SerializeAs 属性

定义

获取或设置用于存留 SettingElement 对象的值的序列化机制。

C#
[System.Configuration.ConfigurationProperty("serializeAs", DefaultValue=System.Configuration.SettingsSerializeAs.String, IsRequired=true)]
public System.Configuration.SettingsSerializeAs SerializeAs { get; set; }
C#
public System.Configuration.SettingsSerializeAs SerializeAs { get; set; }

属性值

SettingsSerializeAs 对象。

属性

注解

对象 SettingsSerializeAs 是用作序列化方案的枚举,用于存储配置设置。

适用于

产品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9