C# Класс System.Configuration.CustomizableFileSettingsProvider

Наследование: SettingsProvider, IApplicationSettingsProvider
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CheckFileName bool
CheckPath bool
CreateExeMap void
CreateUserConfigPath void
GetCompanyName string
GetEvidenceHash string
GetProductName string
GetProductVersion string
LoadProperties void
LoadPropertyValue void
PrevVersionPath string
SaveProperties void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetPreviousVersion() публичный Метод

public GetPreviousVersion ( SettingsContext context, SettingsProperty property ) : SettingsPropertyValue
context SettingsContext
property SettingsProperty
Результат SettingsPropertyValue

GetPropertyValues() публичный Метод

public GetPropertyValues ( SettingsContext context, SettingsPropertyCollection collection ) : SettingsPropertyValueCollection
context SettingsContext
collection SettingsPropertyCollection
Результат SettingsPropertyValueCollection

Initialize() публичный Метод

public Initialize ( string name, System.Collections.Specialized.NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
Результат void

Reset() публичный Метод

public Reset ( SettingsContext context ) : void
context SettingsContext
Результат void

SetCompanyName() публичный статический Метод

public static SetCompanyName ( string companyName ) : bool
companyName string
Результат bool

SetProductName() публичный статический Метод

public static SetProductName ( string productName ) : bool
productName string
Результат bool

SetPropertyValues() публичный Метод

public SetPropertyValues ( SettingsContext context, SettingsPropertyValueCollection collection ) : void
context SettingsContext
collection SettingsPropertyValueCollection
Результат void

SetUserLocalFileName() публичный статический Метод

public static SetUserLocalFileName ( string configFile ) : bool
configFile string
Результат bool

SetUserLocalPath() публичный статический Метод

public static SetUserLocalPath ( string configPath ) : bool
configPath string
Результат bool

SetUserRoamingFileName() публичный статический Метод

public static SetUserRoamingFileName ( string configFile ) : bool
configFile string
Результат bool

SetUserRoamingPath() публичный статический Метод

public static SetUserRoamingPath ( string configPath ) : bool
configPath string
Результат bool

SetVersion() публичный статический Метод

public static SetVersion ( int major ) : bool
major int
Результат bool

SetVersion() публичный статический Метод

public static SetVersion ( int major, int minor ) : bool
major int
minor int
Результат bool

SetVersion() публичный статический Метод

public static SetVersion ( int major, int minor, int build ) : bool
major int
minor int
build int
Результат bool

SetVersion() публичный статический Метод

public static SetVersion ( int major, int minor, int build, int revision ) : bool
major int
minor int
build int
revision int
Результат bool

SetVersion() публичный статический Метод

public static SetVersion ( string forceVersion ) : bool
forceVersion string
Результат bool

Upgrade() публичный Метод

public Upgrade ( SettingsContext context, SettingsPropertyCollection properties ) : void
context SettingsContext
properties SettingsPropertyCollection
Результат void

setCreate() публичный статический Метод

public static setCreate ( ) : void
Результат void