RequiresProvidesDirectiveProcessor.Initialize Method
Initializes an instance of the directive processor.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating.12.0 (in Microsoft.VisualStudio.TextTemplating.12.0.dll)
Syntax
'Declaration
Public Overrides Sub Initialize ( _
host As ITextTemplatingEngineHost _
)
public override void Initialize(
ITextTemplatingEngineHost host
)
public:
virtual void Initialize(
ITextTemplatingEngineHost^ host
) override
abstract Initialize :
host:ITextTemplatingEngineHost -> unit
override Initialize :
host:ITextTemplatingEngineHost -> unit
public override function Initialize(
host : ITextTemplatingEngineHost
)
Parameters
host
Type: ITextTemplatingEngineHostThe ITextTemplatingEngineHost of the RequiresProvidesDirectiveProcessor. The RequiresProvidesDirectiveProcessor can request information about the file system or the external environment from the host.
Implements
IDirectiveProcessor.Initialize(ITextTemplatingEngineHost)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | host is nulla null reference (Nothing in Visual Basic). |
Remarks
Initialize is called before StartProcessingRun and lets the directive processor get information that it needs from the host.
You can throw an exception during Initialize to stop the processing.
.NET Framework Security
- 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
Reference
RequiresProvidesDirectiveProcessor Class