SettingsBase.Synchronized Method (SettingsBase)

 

Provides a SettingsBase class that is synchronized (thread safe).

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

public static SettingsBase Synchronized(
	SettingsBase settingsBase
)

Parameters

settingsBase
Type: System.Configuration.SettingsBase

The class used to support user property settings.

Return Value

Type: System.Configuration.SettingsBase

A SettingsBase class that is synchronized.

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.

.NET Framework
Available since 2.0
Return to top
Show: