C# Class System.Configuration.CustomizableFileSettingsProvider

Inheritance: SettingsProvider, IApplicationSettingsProvider
Show file Open project: runefs/Marvin Class Usage Examples

Private Properties

Property Type Description
CheckFileName bool
CheckPath bool
CreateExeMap void
CreateUserConfigPath void
GetCompanyName string
GetEvidenceHash string
GetProductName string
GetProductVersion string
LoadProperties void
LoadPropertyValue void
PrevVersionPath string
SaveProperties void

Public Methods

Method Description
GetPreviousVersion ( SettingsContext context, SettingsProperty property ) : SettingsPropertyValue
GetPropertyValues ( SettingsContext context, SettingsPropertyCollection collection ) : SettingsPropertyValueCollection
Initialize ( string name, System.Collections.Specialized.NameValueCollection config ) : void
Reset ( SettingsContext context ) : void
SetCompanyName ( string companyName ) : bool
SetProductName ( string productName ) : bool
SetPropertyValues ( SettingsContext context, SettingsPropertyValueCollection collection ) : void
SetUserLocalFileName ( string configFile ) : bool
SetUserLocalPath ( string configPath ) : bool
SetUserRoamingFileName ( string configFile ) : bool
SetUserRoamingPath ( string configPath ) : bool
SetVersion ( int major ) : bool
SetVersion ( int major, int minor ) : bool
SetVersion ( int major, int minor, int build ) : bool
SetVersion ( int major, int minor, int build, int revision ) : bool
SetVersion ( string forceVersion ) : bool
Upgrade ( SettingsContext context, SettingsPropertyCollection properties ) : void
setCreate ( ) : void

Private Methods

Method Description
CheckFileName ( string configFile ) : bool
CheckPath ( string configPath ) : bool
CreateExeMap ( ) : void
CreateUserConfigPath ( ) : void
GetCompanyName ( ) : string
GetEvidenceHash ( ) : string
GetProductName ( ) : string
GetProductVersion ( ) : string
LoadProperties ( ExeConfigurationFileMap exeMap, SettingsPropertyCollection collection, ConfigurationUserLevel level, string sectionGroupName, bool allowOverwrite, string groupName ) : void
LoadPropertyValue ( SettingsPropertyCollection collection, SettingElement element, bool allowOverwrite ) : void
PrevVersionPath ( string dirName, string currentVersion ) : string
SaveProperties ( ExeConfigurationFileMap exeMap, SettingsPropertyValueCollection collection, ConfigurationUserLevel level, SettingsContext context, bool checkUserLevel ) : void

Method Details

GetPreviousVersion() public method

public GetPreviousVersion ( SettingsContext context, SettingsProperty property ) : SettingsPropertyValue
context SettingsContext
property SettingsProperty
return SettingsPropertyValue

GetPropertyValues() public method

public GetPropertyValues ( SettingsContext context, SettingsPropertyCollection collection ) : SettingsPropertyValueCollection
context SettingsContext
collection SettingsPropertyCollection
return SettingsPropertyValueCollection

Initialize() public method

public Initialize ( string name, System.Collections.Specialized.NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
return void

Reset() public method

public Reset ( SettingsContext context ) : void
context SettingsContext
return void

SetCompanyName() public static method

public static SetCompanyName ( string companyName ) : bool
companyName string
return bool

SetProductName() public static method

public static SetProductName ( string productName ) : bool
productName string
return bool

SetPropertyValues() public method

public SetPropertyValues ( SettingsContext context, SettingsPropertyValueCollection collection ) : void
context SettingsContext
collection SettingsPropertyValueCollection
return void

SetUserLocalFileName() public static method

public static SetUserLocalFileName ( string configFile ) : bool
configFile string
return bool

SetUserLocalPath() public static method

public static SetUserLocalPath ( string configPath ) : bool
configPath string
return bool

SetUserRoamingFileName() public static method

public static SetUserRoamingFileName ( string configFile ) : bool
configFile string
return bool

SetUserRoamingPath() public static method

public static SetUserRoamingPath ( string configPath ) : bool
configPath string
return bool

SetVersion() public static method

public static SetVersion ( int major ) : bool
major int
return bool

SetVersion() public static method

public static SetVersion ( int major, int minor ) : bool
major int
minor int
return bool

SetVersion() public static method

public static SetVersion ( int major, int minor, int build ) : bool
major int
minor int
build int
return bool

SetVersion() public static method

public static SetVersion ( int major, int minor, int build, int revision ) : bool
major int
minor int
build int
revision int
return bool

SetVersion() public static method

public static SetVersion ( string forceVersion ) : bool
forceVersion string
return bool

Upgrade() public method

public Upgrade ( SettingsContext context, SettingsPropertyCollection properties ) : void
context SettingsContext
properties SettingsPropertyCollection
return void

setCreate() public static method

public static setCreate ( ) : void
return void