ScriptFactory.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.
네임스페이스: Microsoft.SqlServer.Management.UI.VSIntegration.Editors
어셈블리: SQLEditors(SQLEditors.dll)
구문
‘선언
Public Sub CreateNewScriptBasedOnTemplate ( _
fullPathToTemplate As String, _
desiredExtension As String, _
isInParamSubstMode As Boolean, _
projectToAddScriptTo As IVsProject _
)
‘사용 방법
Dim instance As ScriptFactory
Dim fullPathToTemplate As String
Dim desiredExtension As String
Dim isInParamSubstMode As Boolean
Dim projectToAddScriptTo As IVsProject
instance.CreateNewScriptBasedOnTemplate(fullPathToTemplate, _
desiredExtension, isInParamSubstMode, _
projectToAddScriptTo)
public void CreateNewScriptBasedOnTemplate(
string fullPathToTemplate,
string desiredExtension,
bool isInParamSubstMode,
IVsProject projectToAddScriptTo
)
public:
void CreateNewScriptBasedOnTemplate(
String^ fullPathToTemplate,
String^ desiredExtension,
bool isInParamSubstMode,
IVsProject^ projectToAddScriptTo
)
member CreateNewScriptBasedOnTemplate :
fullPathToTemplate:string *
desiredExtension:string *
isInParamSubstMode:bool *
projectToAddScriptTo:IVsProject -> unit
public function CreateNewScriptBasedOnTemplate(
fullPathToTemplate : String,
desiredExtension : String,
isInParamSubstMode : boolean,
projectToAddScriptTo : IVsProject
)
매개 변수
- fullPathToTemplate
유형: System.String
A string value that specifies the full path to the script.
- desiredExtension
유형: System.String
A string value that specifies the extension for the new query that will be created based on template.
- isInParamSubstMode
유형: System.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.
참고 항목
참조
CreateNewScriptBasedOnTemplate 오버로드
Microsoft.SqlServer.Management.UI.VSIntegration.Editors 네임스페이스