SettingsSerializeAsAttribute(SettingsSerializeAs) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應