📄 spellcheckerservicevb.asmx.vb
字号:
Imports System.Web.Services
Imports Telerik.WebControls.RadSpellUtils
Imports System.Web.Services.Protocols
Namespace Telerik.SpellExamplesVBNET.Telerik.SpellExamplesVBNET.Programming.ServerApi.WebServices
<System.Web.Services.WebService(Namespace:="http://telerik.com/Telerik.SpellExamplesVBNET/SpellCheckerServiceVB"), _
SoapDocumentService(RoutingStyle:=SoapServiceRoutingStyle.RequestElement)> _
Public Class SpellCheckerServiceVB
Inherits System.Web.Services.WebService
#Region " Web Services Designer Generated Code "
Public Sub New()
MyBase.New()
'This call is required by the Web Services Designer.
InitializeComponent()
'Add your own initialization code after the InitializeComponent() call
End Sub
'Required by the Web Services Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Web Services Designer
'It can be modified using the Web Services Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
components = New System.ComponentModel.Container
End Sub
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
'CODEGEN: This procedure is required by the Web Services Designer
'Do not modify it using the code editor.
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
#End Region
' WEB SERVICE EXAMPLE
' The HelloWorld() example service returns the string Hello World.
' To build, uncomment the following lines then save and build the project.
' To test this web service, ensure that the .asmx file is the start page
' and press F5.
'
'<WebMethod()> _
'Public Function HelloWorld() As String
' Return "Hello World"
'End Function
<WebMethod()> _
Public Function SpellCheckText(ByVal text As String) As SpellCheckErrors
Dim checker As SpellChecker
Try
checker = New SpellChecker(Server.MapPath("~/RadControls/Spell/TDF"))
checker.Text = text
Return checker.Errors
Finally
checker.Dispose()
End Try
End Function
End Class
End Namespace
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -