DirectiveProcessor.FinishProcessingRun メソッド
派生クラスでオーバーライドされると、一連のディレクティブ処理を終了します。
名前空間: Microsoft.VisualStudio.TextTemplating
アセンブリ: Microsoft.VisualStudio.TextTemplating.11.0 (Microsoft.VisualStudio.TextTemplating.11.0.dll 内)
構文
'宣言
Public MustOverride Sub FinishProcessingRun
public abstract void FinishProcessingRun()
public:
virtual void FinishProcessingRun() abstract
abstract FinishProcessingRun : unit -> unit
public abstract function FinishProcessingRun()
実装
IDirectiveProcessor.FinishProcessingRun()
解説
新しい一連の処理を開始できるように、ステート マシンをリセットします。
例
カスタム ディレクティブ プロセッサを実装するコード例を次に示します。このコード例は、DirectiveProcessor クラスのトピックで取り上げているコード例の一部分です。
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 セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
関連項目
Microsoft.VisualStudio.TextTemplating 名前空間
StartProcessingRun