CodeContainerRegistry Class

Definition

A type that represents the main Registry employed by the Shell for keeping track of all the Code Containers it accesses.

[Windows::Foundation::Metadata::WebHostHidden]
class CodeContainerRegistry : Microsoft::VisualStudio::Shell::ObservableSettingsListBase<Microsoft::VisualStudio::Shell::CodeContainerManagement::CodeContainer>
Inheritance

Constructors

Properties

Capacity (Inherited from ObservableSettingsListBase<TValue>)
IsRoamed

Keep the underlying data stored locally, i.e. don't roam it.

Recycle (Inherited from ObservableSettingsListBase<TValue>)
SettingsList

The actual settings list where the Code Container data is persisted.

(Inherited from ObservableSettingsListBase<TValue>)
SettingsListName

The name of the underlying store used to persist the data on this Registry.

Methods

AddOrUpdateAsync(String, ValueT, Object, CancellationToken)

Adds or updates value to the Registry under the supplied key.

(Inherited from ObservableSettingsListBase<TValue>)
AddToFrontAsync(String, ValueT, Object) (Inherited from ObservableSettingsListBase<TValue>)
ClearAsync(Object, CancellationToken)

Clears all keys and values stored on the list.

(Inherited from ObservableSettingsListBase<TValue>)
ClearAsync(Object) (Inherited from ObservableSettingsListBase<TValue>)
CodeContainerSettingsList_CollectionChangedAsync(Object, SettingsListChangedEventArgs)

An event-handler that is fired whenever changes to the underlying ISettingsList maintained by the Registry are made.

(Inherited from ObservableSettingsListBase<TValue>)
GetAsync(String, CancellationToken)

Retrieves the Code Container associated with key if any. Returns null otherwise.

(Inherited from ObservableSettingsListBase<TValue>)
GetValueOrDefault(String) (Inherited from ObservableSettingsListBase<TValue>)
PurgeIfNecessaryAsync(Object, CancellationToken)

Removes a fixed number of the least-accessed values to keep the underlying ISettingsList from growing indefinitely.

(Inherited from ObservableSettingsListBase<TValue>)
RemoveAsync(String, Object, CancellationToken)

Removes the value stored under the supplied key if any.

(Inherited from ObservableSettingsListBase<TValue>)
RemoveAsync(String, Object) (Inherited from ObservableSettingsListBase<TValue>)
SubscribeAsync(ITargetBlock<StatefulReadOnlyList<ValueT,Object>>, CancellationToken)

Allows targetBlock to receive updates of the list of items stored on the list and receive up-to-date versions of it whenever it gets modified.

(Inherited from ObservableSettingsListBase<TValue>)
SuspendUpdatesAsync()

Suspends sending updates to any subscribed observers. This is useful in case multiple changes are made to the list cause it keeps the list from pushing updates to subscribers every single time a change is made. Any updates made to the underlying list during suspension will cause an up-to-date copy to be pushed to subscribers as soon as suspensions are disposed of.

(Inherited from ObservableSettingsListBase<TValue>)

Applies to