IWritableFeatureFlagsStore Interface
An abstraction of a writable repository for feature flags. The collection semantics are modeled after IVsSettingsStore and have the following characteristics:
Collections can contain properties and sub collections.
Sub collection paths are described with the strings like file system directory paths. The path contains the names of all the parent collections.
Similarly, the separator used between the names of the parent collections is the \ (back-slash) character. Example of a sub collection path is: Root Collection\Internal Collection\Leaf Collection.
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
| Name | Description | |
|---|---|---|
![]() | DeleteProperty(String^, String^) | Deletes the given property from the collection. This method succeeds silently if the property doesn't exist. |
![]() | GetBoolValue(String^, String^) | Gets a boolean value stored under the collectionPath with the given name. If the collectionPath or the name does not exist, then null is returned.(Inherited from IFeatureFlagsStore.) |
![]() | GetSubCollections(String^) | Gets all subcollections directly under the collectionPath; in other words, returns the children but not the grandchildren of collectionPath. Calling this method with a collectionPath of Root Collection against a collection that contains Root Collection\Internal Collection\Leaf Collection returns Internal Collection.(Inherited from IFeatureFlagsStore.) |
![]() | SetBool(String^, String^, Boolean) | Updates the value of the property to the given boolean value. If the previous data type of the property is not a Boolean, this method overwrites it. If the property doesn't exist, it creates one. If the collection doesn't exist, it is created. |
