AddPlaceHolder(String,String,String,String,Int32,Int32) Method
Add a new repeated place holder to the template specification used by this HtmlExtractor.
'Declaration
Public Overloads Sub AddPlaceHolder( _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal As Integer, _
ByVal As Integer _
)
'Usage
Dim instance As HtmlExtractor
Dim repeatedBlockName As String
Dim repeatedPlaceHolderName As String
Dim repeatedPlaceHolderXPath As String
Dim repeatedPlaceHolderXPathInNextBlock As String
Dim selectionBeginIndex As Integer
Dim selectionLength As Integer
instance.AddPlaceHolder(repeatedBlockName, repeatedPlaceHolderName, repeatedPlaceHolderXPath, repeatedPlaceHolderXPathInNextBlock, selectionBeginIndex, selectionLength)
Parameters
- repeatedBlockName
- The name of the repeated block in which the repeated place holder belongs.
- repeatedPlaceHolderName
- The name to be used to refer to the place holder.
- repeatedPlaceHolderXPath
- The XPath of the html element containing the selected text from the place holder.
- repeatedPlaceHolderXPathInNextBlock
- The XPath of the element corresponding to in the following block instance.
- selectionBeginIndex
- The 0-based character index where the selected text begins regarding to the TextContent property of the html element pointed by .
- selectionLength
- The number of characters of the selected text.
Exception | Description |
System.ArgumentException | The exception that is thrown when one of the arguments provided to a method is not valid. |
System.ArgumentOutOfRangeException | The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method. |