ScriptFactory.CreateNewScriptBasedOnTemplate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a temporary query file with specified extension based on given template, opens it in Misc project, which will create a snapshot of the file, and delete the previously created query file. Without this method, Visual Studio would always create a new file with the same extension as the template.
Overloads
CreateNewScriptBasedOnTemplate(String, String, Boolean) |
Creates a temporary query file with specified extension based on given template, opens it in Misc project, which will create a snapshot of the file, and delete the previously created query file. Without this method, Visual Studio would always create a new file with the same extension as the template. |
CreateNewScriptBasedOnTemplate(String, String, Boolean, IVsProject) |
Creates a temporary query file with specified extension based on given template, opens it in Misc project, which will create a snapshot of the file, and delete the previously created query file. Without this method, Visual Studio would always create a new file with the same extension as the template. |
CreateNewScriptBasedOnTemplate(String, String, Boolean)
Creates a temporary query file with specified extension based on given template, opens it in Misc project, which will create a snapshot of the file, and delete the previously created query file. Without this method, Visual Studio would always create a new file with the same extension as the template.
public:
virtual void CreateNewScriptBasedOnTemplate(System::String ^ fullPathToTemplate, System::String ^ desiredExtension, bool isInParamSubstMode);
public void CreateNewScriptBasedOnTemplate (string fullPathToTemplate, string desiredExtension, bool isInParamSubstMode);
abstract member CreateNewScriptBasedOnTemplate : string * string * bool -> unit
override this.CreateNewScriptBasedOnTemplate : string * string * bool -> unit
Public Sub CreateNewScriptBasedOnTemplate (fullPathToTemplate As String, desiredExtension As String, isInParamSubstMode As Boolean)
Parameters
- fullPathToTemplate
- String
The full path to the script.
- desiredExtension
- String
The extension for the new query that will be created based on template.
- isInParamSubstMode
- Boolean
true
to the query editor should start in template params substitution mode or in regular mode; otherwise, false
.
Implements
Applies to
CreateNewScriptBasedOnTemplate(String, String, Boolean, IVsProject)
Creates a temporary query file with specified extension based on given template, opens it in Misc project, which will create a snapshot of the file, and delete the previously created query file. Without this method, Visual Studio would always create a new file with the same extension as the template.
public:
void CreateNewScriptBasedOnTemplate(System::String ^ fullPathToTemplate, System::String ^ desiredExtension, bool isInParamSubstMode, Microsoft::VisualStudio::Shell::Interop::IVsProject ^ projectToAddScriptTo);
public void CreateNewScriptBasedOnTemplate (string fullPathToTemplate, string desiredExtension, bool isInParamSubstMode, Microsoft.VisualStudio.Shell.Interop.IVsProject projectToAddScriptTo);
member this.CreateNewScriptBasedOnTemplate : string * string * bool * Microsoft.VisualStudio.Shell.Interop.IVsProject -> unit
Public Sub CreateNewScriptBasedOnTemplate (fullPathToTemplate As String, desiredExtension As String, isInParamSubstMode As Boolean, projectToAddScriptTo As IVsProject)
Parameters
- fullPathToTemplate
- String
A string value that specifies the full path to the script.
- desiredExtension
- String
A string value that specifies the extension for the new query that will be created based on template.
- isInParamSubstMode
- Boolean
A Boolean value that specifies whether the query editor should start in template params substitution mode or in regular mode.
- projectToAddScriptTo
- IVsProject
A IVsProject that is currently loaded.