Name
ClientTargetSectionHandler
Synopsis
ASP.NET delegates the processing of web.config data to
configuration section handlers. Section handlers are
declared in the web.config file using “add” directives
inside the <configsections> element. Each element identifies a specific
section of configuration data, and the associated System.Configuration.IConfigurationSectionHandler class is used
to process it. By inheriting from this class, you could create your own custom
section handler. Note that you do not need to create your own custom section handler
just to add application-specific constants to your web.config file;
these constants can be added to the <appSettings> section and retrieved through the System.Configuration.ConfigurationSettings class.
Class ClientTargetSectionHandler : Inherits System.Configuration.NameValueSectionHandler ' Public Constructors Public Sub New() ' Protected Instance Properties Overrides Protected Property KeyAttributeName As String Overrides Protected Property ValueAttributeName As String End Class
Hierarchy
System.Object→System.Configuration.NameValueSectionHandler(System.Configuration.IConfigurationSectionHandler)→ ClientTargetSectionHandler
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access