SettingsSerializeAsAttribute Constructor (SettingsSerializeAs)

 
System_CAPS_noteNote

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

Initializes an instance of the SettingsSerializeAsAttribute class.

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

public SettingsSerializeAsAttribute(
	SettingsSerializeAs serializeAs
)

Parameters

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
Show: