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
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk