Adds a file to the project from a template.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Sub AddFileFromTemplate ( _
source As String, _
target As String _
)
'使用
Dim instance As ProjectNode
Dim source As String
Dim target As String
instance.AddFileFromTemplate(source, _
target)
public virtual void AddFileFromTemplate(
string source,
string target
)
public:
virtual void AddFileFromTemplate(
String^ source,
String^ target
)
public function AddFileFromTemplate(
source : String,
target : String
)
Parameters
source
Type: System.StringFull path of template file.
target
Type: System.StringFull path of file once it is added to the project.
Remarks
This method creates the file's parent directory if necessary and creates a new file from the given template. Override AddFileFromTemplate if you want to customize this behavior.
Permissions
- 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.