Editar

Compartir vía


SettingsSerializeAsAttribute(SettingsSerializeAs) Constructor

Definition

Initializes an instance of the SettingsSerializeAsAttribute class.

public:
 SettingsSerializeAsAttribute(System::Configuration::SettingsSerializeAs serializeAs);
public SettingsSerializeAsAttribute (System.Configuration.SettingsSerializeAs serializeAs);
new System.Configuration.SettingsSerializeAsAttribute : System.Configuration.SettingsSerializeAs -> System.Configuration.SettingsSerializeAsAttribute
Public Sub New (serializeAs As SettingsSerializeAs)

Parameters

serializeAs
SettingsSerializeAs

A SettingsSerializeAs enumerated value that specifies the serialization scheme.

Remarks

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.

Applies to

See also