Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called when an output directive is encountered in the template, to inform you of the file extension requested in the output directive.
Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll)
Syntax
'Declaration
Sub SetFileExtension ( _
extension As String _
)
void SetFileExtension(
string extension
)
void SetFileExtension(
String^ extension
)
abstract SetFileExtension :
extension:string -> unit
function SetFileExtension(
extension : String
)
Parameters
- extension
Type: System.String
The file extension requested in the output directive.
Remarks
For more information, see T4 Output Directive.
.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.