librarysectionhandler.vb

来自「asp入门到精通的源代码」· VB 代码 · 共 16 行

VB
16
字号
Imports System
Imports System.Configuration
Imports System.Xml

Namespace TYASPNET.Handlers
   Public Class LibrarySectionHandler : Implements IConfigurationSectionHandler
      Public Function Create(parent as Object, configContext as Object, section as XmlNode) as Object Implements IConfigurationSectionHandler.Create
         dim strFileName as String
         strFileName = section.Attributes.Item(0).Value
         
         dim objReader as new XmlTextReader(strFileName)
         return objReader
      End Function
   End Class

End Namespace

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?