Method | Description | |
---|---|---|
GetHostOption ( string optionName ) : object |
Called by the Engine to enquire about the processing options you require. If you recognize that option, return an appropriate value. Otherwise, pass back NULL.
|
|
GetService ( |
/
|
|
LoadIncludeText ( string requestFileName, string &content, string &location ) : bool |
The engine calls this method based on the optional include directive if the user has specified it in the text template.
|
|
LogErrors ( |
/
|
|
ProvideTemplatingAppDomain ( string content ) : |
/
|
|
ResolveParameterValue ( string directiveId, string processorName, string parameterName ) : string |
If a call to a directive in a text template does not provide a value for a required parameter, the directive processor can try to get it from the host by calling this method. This method can be called 0, 1, or more times.
|
|
ResolvePath ( string path ) : string |
A directive processor can call this method if a file name does not have a path. The host can attempt to provide path information by searching specific paths for the file and returning the file and path if found. This method can be called 0, 1, or more times.
|
|
SetFileExtension ( string extension ) : void |
/
|
|
SetOutputEncoding ( |
/
|
|
VisualStudioTextTemplateHost ( string templateFile, DTE2 dte, IVariableResolver resolver ) : System |
/
|
Method | Description | |
---|---|---|
PossibleFullPaths ( string path ) : IEnumerable |
||
ReplaceProjectVar ( string path, string variable ) : IEnumerable |
||
ReplaceProjectVarsPrivate ( string path ) : IEnumerable |
||
ResolveAllPathsPrivate ( string path ) : IEnumerable |
||
ResolveAssemblyReference ( string assemblyReference ) : string | ||
ResolveDirectiveProcessor ( string processorName ) : |
||
ResolveFilePathPrivate ( string path ) : string |
public GetHostOption ( string optionName ) : object | ||
optionName | string | |
return | object |
public GetService ( |
||
serviceType | ||
return | object |
public LoadIncludeText ( string requestFileName, string &content, string &location ) : bool | ||
requestFileName | string | |
content | string | |
location | string | |
return | bool |
public LogErrors ( |
||
errors | ||
return | void |
public ProvideTemplatingAppDomain ( string content ) : |
||
content | string | |
return |
public ResolveParameterValue ( string directiveId, string processorName, string parameterName ) : string | ||
directiveId | string | |
processorName | string | |
parameterName | string | |
return | string |
public SetFileExtension ( string extension ) : void | ||
extension | string | |
return | void |
public SetOutputEncoding ( |
||
encoding | ||
fromOutputDirective | bool | |
return | void |
public VisualStudioTextTemplateHost ( string templateFile, DTE2 dte, IVariableResolver resolver ) : System | ||
templateFile | string | |
dte | DTE2 | |
resolver | IVariableResolver | |
return | System |