BaseTemplatedCodeGenerator.GetDefaultExtension Method
Get the extension of the file that should be created
Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.VSHost.12.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.12.0.dll)
Syntax
'Declaration
Public Overrides Function GetDefaultExtension As String
public override string GetDefaultExtension()
public:
virtual String^ GetDefaultExtension() override
abstract GetDefaultExtension : unit -> string
override GetDefaultExtension : unit -> string
public override function GetDefaultExtension() : String
Return Value
Type: System.String
Remarks
This is called after generate and this behavior is relied upon as templates specify the extension in their input file
.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.