C# Class GitHub.Helpers.SettingsStore

Afficher le fichier Open project: github/VisualStudio

Méthodes publiques

Méthode Description
Read ( string property, object defaultValue ) : object
Read ( string subpath, string property, object defaultValue ) : object

Read from a settings store

SettingsStore ( WritableSettingsStore store, string root ) : System.IO
Write ( string property, object value ) : void
Write ( string subpath, string property, object value ) : void

Method Details

Read() public méthode

public Read ( string property, object defaultValue ) : object
property string
defaultValue object
Résultat object

Read() public méthode

Read from a settings store
public Read ( string subpath, string property, object defaultValue ) : object
subpath string The subcollection path (appended to the path passed to the constructor)
property string The property name to read
defaultValue object The default value to use in case the property doesn't exist. /// The type of the default value will be used to figure out the proper way to read the property, so if pass null, /// the property will be read as a string (which may or may not be what you want)
Résultat object

SettingsStore() public méthode

public SettingsStore ( WritableSettingsStore store, string root ) : System.IO
store WritableSettingsStore
root string
Résultat System.IO

Write() public méthode

public Write ( string property, object value ) : void
property string
value object
Résultat void

Write() public méthode

public Write ( string subpath, string property, object value ) : void
subpath string
property string
value object
Résultat void