RequiresProvidesDirectiveProcessor.GetClassCodeForProcessingRun Method

Gets code to add to the generated transformation class.

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

Syntax

'Declaration
Public Overrides Function GetClassCodeForProcessingRun As String
public override string GetClassCodeForProcessingRun()
public:
virtual String^ GetClassCodeForProcessingRun() override
abstract GetClassCodeForProcessingRun : unit -> string  
override GetClassCodeForProcessingRun : unit -> string
public override function GetClassCodeForProcessingRun() : String

Return Value

Type: String
A String that contains the code to add to the generated transformation class.

Implements

IDirectiveProcessor.GetClassCodeForProcessingRun()

Exceptions

Exception Condition
InvalidOperationException

A processing run has already started but not yet finished.

Remarks

The directive processor can use a buffer to store the code that is added to the generated transformation class after all the processing is finished. The code is added to the generated transformation class as new members of the class, not inside existing members of the class.

This method is overridden in RequiresProvidesDirectiveProcessor to return the contents of the codeBuffer passed to the GenerateTransformCode method. You do not usually need to override this method in classes that derive from RequiresProvidesDirectiveProcessor.

.NET Framework Security

See Also

Reference

RequiresProvidesDirectiveProcessor Class

Microsoft.VisualStudio.TextTemplating Namespace

GetImportsForProcessingRun

GetReferencesForProcessingRun

GetClassCodeForProcessingRun