Set the context data object for the template. Any items in the current ContextData object will be added to the new one. This method should only be called while a template is initializing.

Namespace: CodeSmith.Engine
Assembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
protected internal void SetContextData(
	NameValueCollection contextData
)
Visual Basic
Protected Friend Sub SetContextData ( 
	contextData As NameValueCollection
)

Parameters

contextData
Type: System.Collections.Specialized..::..NameValueCollection
The context data object.

See Also