RequiresProvidesDirectiveProcessor.StartProcessingRun Method
Starts a directive processor.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating.12.0 (in Microsoft.VisualStudio.TextTemplating.12.0.dll)
Syntax
'Declaration
Public Overrides Sub StartProcessingRun ( _
languageProvider As CodeDomProvider, _
templateContents As String, _
errors As CompilerErrorCollection _
)
public override void StartProcessingRun(
CodeDomProvider languageProvider,
string templateContents,
CompilerErrorCollection errors
)
public:
virtual void StartProcessingRun(
CodeDomProvider^ languageProvider,
String^ templateContents,
CompilerErrorCollection^ errors
) override
abstract StartProcessingRun :
languageProvider:CodeDomProvider *
templateContents:string *
errors:CompilerErrorCollection -> unit
override StartProcessingRun :
languageProvider:CodeDomProvider *
templateContents:string *
errors:CompilerErrorCollection -> unit
public override function StartProcessingRun(
languageProvider : CodeDomProvider,
templateContents : String,
errors : CompilerErrorCollection
)
Parameters
languageProvider
Type: System.CodeDom.Compiler.CodeDomProviderThe code generator that creates the generated transformation class.
templateContents
Type: System.StringThe contents of the template that is being processed.
errors
Type: System.CodeDom.Compiler.CompilerErrorCollectionA collection to which the RequiresProvidesDirectiveProcessor can add errors and warnings if necessary.
Implements
IDirectiveProcessor.StartProcessingRun(CodeDomProvider, String, CompilerErrorCollection)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | languageProvider is nulla null reference (Nothing in Visual Basic). |
InvalidOperationException | A processing run has already started but not yet finished. |
Remarks
The default language provider is CSharpCodeProvider.
.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
RequiresProvidesDirectiveProcessor Class
Microsoft.VisualStudio.TextTemplating Namespace
StartProcessingRun