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
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.
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
- 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
RequiresProvidesDirectiveProcessor Members
Microsoft.VisualStudio.TextTemplating Namespace
StartProcessingRun(CodeDomProvider)