Share via


DirectiveProcessor.FinishProcessingRun Method

When overridden in a derived class, finishes a round of directive processing.

Namespace:  Microsoft.VisualStudio.TextTemplating
Assembly:  Microsoft.VisualStudio.TextTemplating.11.0 (in Microsoft.VisualStudio.TextTemplating.11.0.dll)

Syntax

'Declaration
Public MustOverride Sub FinishProcessingRun
public abstract void FinishProcessingRun()
public:
virtual void FinishProcessingRun() abstract
abstract FinishProcessingRun : unit -> unit
public abstract function FinishProcessingRun()

Implements

IDirectiveProcessor.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

See Also

Reference

DirectiveProcessor Class

Microsoft.VisualStudio.TextTemplating Namespace

StartProcessingRun

FinishProcessingRun

Other Resources

Creating Custom T4 Text Template Directive Processors

Walkthrough: Creating a Custom Directive Processor