Share via


RequiresProvidesDirectiveProcessor.GetClassCodeForProcessingRun Method

Gets code to add to the generated transformation class.

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

Syntax

'Declaration
Public Overrides Function GetClassCodeForProcessingRun As String
'Usage
Dim instance As RequiresProvidesDirectiveProcessor 
Dim returnValue As String 

returnValue = instance.GetClassCodeForProcessingRun()
public override string GetClassCodeForProcessingRun()
public:
virtual String^ GetClassCodeForProcessingRun() override
public override function GetClassCodeForProcessingRun() : String

Return Value

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

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

RequiresProvidesDirectiveProcessor Members

Microsoft.VisualStudio.TextTemplating Namespace

GetImportsForProcessingRun

GetReferencesForProcessingRun

GetClassCodeForProcessingRun