Metoda RequiresProvidesDirectiveProcessor.StartProcessingRun —
Uruchamia dyrektywa procesora.
Przestrzeń nazw: Microsoft.VisualStudio.TextTemplating
Zestaw: Microsoft.VisualStudio.TextTemplating.11.0 (w Microsoft.VisualStudio.TextTemplating.11.0.dll)
Składnia
'Deklaracja
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
)
Parametry
- languageProvider
Typ: System.CodeDom.Compiler.CodeDomProvider
Generator kodu, który tworzy klasę generowanych transformacji.
- templateContents
Typ: System.String
Zawartość szablonu, który jest przetwarzana.
- errors
Typ: System.CodeDom.Compiler.CompilerErrorCollection
Kolekcja, do której RequiresProvidesDirectiveProcessor można dodać błędy i ostrzeżenia, jeżeli jest to konieczne.
Implementuje
IDirectiveProcessor.StartProcessingRun(CodeDomProvider, String, CompilerErrorCollection)
Wyjątki
Wyjątek | Warunek |
---|---|
ArgumentNullException | languageProvideris nullodwołanie o wartości null (Nothing w języku Visual Basic). |
InvalidOperationException | Przetwarzania, uruchom została już rozpoczęta, ale jeszcze nie została zakończona. |
Uwagi
Dostawca domyślny język jest CSharpCodeProvider.
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..
Zobacz też
Informacje
RequiresProvidesDirectiveProcessor Klasa
Przestrzeń nazw Microsoft.VisualStudio.TextTemplating
StartProcessingRun