Method | Description | |
---|---|---|
GetFilePath ( string pathSetOnWebConfig ) : string |
Returns a real path from a virtiual path.
|
|
GetWebApplicationSection ( string sectionName, bool isManadatory ) : |
Returns the configuration section relating to the name provided. If the section is present in the web.config file this location is used. If it's present in the alternative configuration file then it will be return from there.
|
Method | Description | |
---|---|---|
DoesDirectoryOrFileExist ( string pathSetOnWebConfig ) : bool | ||
GetConfigurationContainingSectionGroupName ( string name ) : |
||
GetConfigurationSectionFromAltConfig ( string sectionName, bool isMandatory ) : |
||
InitMachineConfigFiles ( ) : string |
Has to be a seperate method incase a medium trust security exception is generated.
|
|
MakeAbsolute ( string partialPath ) : string | ||
OpenConfigFileMap ( |
||
OpenConfigFileMap ( string configFileName ) : |
||
RemoveTilda ( string partialPath ) : string | ||
SectionGroupMatch ( |
Checks to determine if the group contains the section name requested.
|
|
SetConfigurationSection ( |
Replaces an existing section with the name provided with a new one.
|
|
SetConfigurationSectionFromAltConfig ( |
Sets the section name in the first valid alternative configuration file to the value contained in the section.
|
|
SetWebApplicationSection ( |
Sets the section name in the first valid configuration file to the value contained in the section.
|
|
Support ( ) : System |
Gets the path to the machine config file. If medium trust is enabled the call will fail and web.config should be used.
|
public static GetFilePath ( string pathSetOnWebConfig ) : string | ||
pathSetOnWebConfig | string | |
return | string |
public static GetWebApplicationSection ( string sectionName, bool isManadatory ) : |
||
sectionName | string | The name of the section to be returned. |
isManadatory | bool | True if the section is mandatary. |
return |