Compartilhar via


RequiresProvidesDirectiveProcessor.GeneratePreInitializationCode Method

Definition

Method for derived classes to contribute additively to initialization code for the TextTransformation generated class.

protected:
 abstract void GeneratePreInitializationCode(System::String ^ directiveName, System::Text::StringBuilder ^ codeBuffer, System::CodeDom::Compiler::CodeDomProvider ^ languageProvider, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ requiresArguments, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ providesArguments);
protected abstract void GeneratePreInitializationCode (string directiveName, System.Text.StringBuilder codeBuffer, System.CodeDom.Compiler.CodeDomProvider languageProvider, System.Collections.Generic.IDictionary<string,string> requiresArguments, System.Collections.Generic.IDictionary<string,string> providesArguments);
abstract member GeneratePreInitializationCode : string * System.Text.StringBuilder * System.CodeDom.Compiler.CodeDomProvider * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> -> unit
Protected MustOverride Sub GeneratePreInitializationCode (directiveName As String, codeBuffer As StringBuilder, languageProvider As CodeDomProvider, requiresArguments As IDictionary(Of String, String), providesArguments As IDictionary(Of String, String))

Parameters

directiveName
String
codeBuffer
StringBuilder
languageProvider
CodeDomProvider
requiresArguments
IDictionary<String,String>
providesArguments
IDictionary<String,String>

Remarks

Additive code is useful where there are multiple directive processor instances each needing to have some instance-specific initialization. As GenerateTransformCode can add methods, matching initialization code is often required to call those methods. This code will be added before the call to the base class.

Applies to