When overridden in a derived class, finishes a round of directive processing.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating (in Microsoft.VisualStudio.TextTemplating.dll)
Syntax
'宣言
Public MustOverride Sub FinishProcessingRun
'使用
Dim instance As DirectiveProcessor
instance.FinishProcessingRun()
public abstract void FinishProcessingRun()
public:
virtual void FinishProcessingRun() abstract
public abstract function FinishProcessingRun()
Remarks
Resets the state machine so that a new round of processing can begin.
Examples
The following code example shows a possible implementation for a custom directive processor. This code example is part of a larger example provided for the DirectiveProcessor class.
public override void FinishProcessingRun()
{
this.codeDomProvider = null;
directiveCount = 0;
//important: do not do this:
//the get methods below are called after this method
//and the get methods can access this field
//-----------------------------------------------------------------
//this.codeBuffer = null;
}
Public Overrides Sub FinishProcessingRun()
Me.codeDomProvider = Nothing
directiveCount = 0
'important: do not do this:
'the get methods below are called after this method
'and the get methods can access this field
'-----------------------------------------------------------------
'Me.codeBuffer = Nothing
End Sub
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.
See Also
Concepts
Directive Processors
Walkthrough: Creating a Custom Directive Processor
Reference
Microsoft.VisualStudio.TextTemplating Namespace
StartProcessingRun(CodeDomProvider)