SmartTag.PersistTag Method (Int32, Int32) (2003 System)
Stores information about the smart tag.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Protected Sub PersistTag ( _
startIndex As Integer, _
length As Integer _
)
'Usage
Dim startIndex As Integer
Dim length As Integer
Me.PersistTag(startIndex, length)
protected void PersistTag(
int startIndex,
int length
)
Parameters
- startIndex
Type: System.Int32
The position in the paragraph where the smart tag begins.
- length
Type: System.Int32
The length of the smart tag.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | PersistTag(Int32, Int32) was not called from Recognize. |
Remarks
PersistTag(Int32, Int32) commits the tag being recognized. Call it from the Recognize method to indicate that the smart tag was found in the text.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.