RequiresProvidesDirectiveProcessor.StartProcessingRun Method

Starts a directive processor.

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

Syntax

'宣言
Public Overrides Sub StartProcessingRun ( _
    languageProvider As CodeDomProvider, _
    templateContents As String, _
    errors As CompilerErrorCollection _
)
'使用
Dim instance As RequiresProvidesDirectiveProcessor
Dim languageProvider As CodeDomProvider
Dim templateContents As String
Dim errors As CompilerErrorCollection

instance.StartProcessingRun(languageProvider, _
    templateContents, errors)
public override void StartProcessingRun(
    CodeDomProvider languageProvider,
    string templateContents,
    CompilerErrorCollection errors
)
public:
virtual void StartProcessingRun(
    CodeDomProvider^ languageProvider, 
    String^ templateContents, 
    CompilerErrorCollection^ errors
) override
public override function StartProcessingRun(
    languageProvider : CodeDomProvider, 
    templateContents : String, 
    errors : CompilerErrorCollection
)

Parameters

  • templateContents
    Type: System.String

    The contents of the template that is being processed.

Exceptions

Exception Condition
ArgumentNullException

languageProvider is a null reference (Nothing in Visual Basic).

InvalidOperationException

A processing run has already started but not yet finished.

Remarks

The default language provider is CSharpCodeProvider.

Permissions

See Also

Reference

RequiresProvidesDirectiveProcessor Class

RequiresProvidesDirectiveProcessor Members

Microsoft.VisualStudio.TextTemplating Namespace

FinishProcessingRun

StartProcessingRun(CodeDomProvider)

CodeDomProvider

VBCodeProvider

CSharpCodeProvider