SettingsBase.Synchronized(SettingsBase) Method
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.
Provides a SettingsBase class that is synchronized (thread safe).
public:
static System::Configuration::SettingsBase ^ Synchronized(System::Configuration::SettingsBase ^ settingsBase);
public static System.Configuration.SettingsBase Synchronized (System.Configuration.SettingsBase settingsBase);
static member Synchronized : System.Configuration.SettingsBase -> System.Configuration.SettingsBase
Public Shared Function Synchronized (settingsBase As SettingsBase) As SettingsBase
Parameters
- settingsBase
- SettingsBase
The class used to support user property settings.
Returns
A SettingsBase class that is synchronized.
Remarks
The indexer will get and set property data in a thread-safe manner if the IsSynchronized property is set to true
. A SettingsBase instance by default is not thread-safe. However, you can call Synchronized passing in a SettingsBase instance to make the SettingsBase indexer operate in a thread-safe manner.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈