Gets or sets the string that the text template transformation process is using to assemble the generated text output.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating (in Microsoft.VisualStudio.TextTemplating.dll)
Syntax
'宣言
Protected Property GenerationEnvironment As StringBuilder
'使用
Dim value As StringBuilder
value = Me.GenerationEnvironment
Me.GenerationEnvironment = value
protected StringBuilder GenerationEnvironment { get; set; }
protected:
property StringBuilder^ GenerationEnvironment {
StringBuilder^ get ();
void set (StringBuilder^ value);
}
protected function get GenerationEnvironment () : StringBuilder
protected function set GenerationEnvironment (value : StringBuilder)
Property Value
Type: System.Text.StringBuilder
A StringBuilder that contains the generated text transformation.
Remarks
The GenerationEnvironment property stores the generated text output as it is being assembled. The methods Write and WriteLine append text to this property. Any text included in a text block in the text template is also appended to this property. When the text template transformation process is complete, this property is returned as the generated text output. The user should not access this property directly.
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
Concepts
How to: Append Text to the Generated Text