SettingsSerializeAsAttribute Constructor (SettingsSerializeAs)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes an instance of the SettingsSerializeAsAttribute class.

Namespace:   System.Configuration
Assembly:  System (in System.dll)

public SettingsSerializeAsAttribute(
	SettingsSerializeAs serializeAs


Type: System.Configuration.SettingsSerializeAs

A SettingsSerializeAs enumerated value that specifies the serialization scheme.

If the settings provider or the type of the property to be converted does not support the serialization scheme specified by the serializeAs parameter, the operation may have one of the following results:

  • The settings provider may ignore the attribute and use its default serialization scheme.

  • The serialization process may fail without a response. The application settings property will not be persisted.

  • An exception may be raised during serialization.

.NET Framework
Available since 2.0
Return to top