The Config type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAddAppSetting(XmlDocument, String, String)
Adds a new AppSetting to Web.Config. If the key already exists, it will be updated with the new value
Public methodStatic memberAddAppSetting(XmlDocument, String, String, Boolean)
Adds a new AppSetting to Web.Config. The update parameter allows you to define if, when the key already exists, this need to be updated or not
Public methodStatic memberAddCodeSubDirectory
Public methodStatic memberAddFCNMode
Public methodStatic memberBackupConfig
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetAuthCookieTimeout
Public methodStatic memberGetConnectionString()()()()
Gets the default connection String as specified in the provider.
Public methodStatic memberGetConnectionString(String)
Gets the specified connection String
Public methodStatic memberGetCustomErrorMode
Public methodStatic memberGetDataBaseOwner
Gets the specified database owner
Public methodStatic memberGetDecryptionkey
Returns the decryptionkey from webconfig machinekey
Public methodStatic memberGetDefaultProvider
Public methodStatic memberGetFcnMode
Returns the fcnMode from webconfig httpRuntime
Public methodStatic memberGetFriendlyUrlProvider
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetMaxUploadSize
Returns the maximum file size allowed to be uploaded to the application in bytes
Public methodStatic memberGetObjectQualifer
Gets the specified object qualifier
Public methodStatic memberGetPathToFile(Config..::..ConfigFileType)
Gets the path for the specificed Config file
Public methodStatic memberGetPathToFile(Config..::..ConfigFileType, Boolean)
Gets the path for the specificed Config file
Public methodStatic memberGetPersistentCookieTimeout
Get's optional persistent cookie timeout value from web.config
Public methodStatic memberGetProvider
Public methodStatic memberGetProviderPath
Gets the specified provider path
Public methodStatic memberGetRequestFilterSize
Returns the maximum file size allowed to be uploaded based on the request filter limit
Public methodStatic memberGetSection
Public methodStatic memberGetSetting
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetUpgradeConnectionString
Gets the specified upgrade connection string
Public methodStatic memberIsNet45OrNewer
Public methodStatic memberLoad()()()()
Public methodStatic memberLoad(String)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRemoveCodeSubDirectory
Public methodStatic memberSave(XmlDocument)
Public methodStatic memberSave(XmlDocument, String)
Public methodStatic memberSetMaxUploadSize
Sets the maximum file size allowed to be uploaded to the application in bytes
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberTouch
Public methodStatic memberUpdateConnectionString
Public methodStatic memberUpdateDataProvider
Public methodStatic memberUpdateInstallVersion
UpdateInstallVersion, but only if the setting does not already exist
Public methodStatic memberUpdateMachineKey()()()()
Public methodStatic memberUpdateMachineKey(XmlDocument)
Public methodStatic memberUpdateUpgradeConnectionString
Updates the specified upgrade connection string
Public methodStatic memberUpdateValidationKey()()()()
Public methodStatic memberUpdateValidationKey(XmlDocument)

Extension Methods

  NameDescription
Public Extension MethodToJson
Extension method on object that serializes the value to Json. Note the type must be marked Serializable or include a DataContract attribute.
(Defined by JsonExtensionsWeb.)

See Also