DirectiveProcessor.FinishProcessingRun Method
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
'Declaration
Public MustOverride Sub FinishProcessingRun
'Usage
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
.NET Framework Security
- 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
Reference
Microsoft.VisualStudio.TextTemplating Namespace
StartProcessingRun(CodeDomProvider)