VCConfiguration::CopyTo Method (Object^)
Visual Studio 2015
Copies the current configuration.
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Parameters
- Config
-
Type:
System::Object^
Required. The configuration into which you want to copy the current configuration's settings.
This method is useful when you have added a configuration and want to copy the settings from an existing configuration to the new configuration.
See How to: Compile Example Code for Project Model Extensibility for information about how to compile and run this example.
The following example invokes the CopyTo method in the integrated development environment (IDE):
' add reference to Microsoft.VisualStudio.VCProjectEngine. Imports EnvDTE Imports Microsoft.VisualStudio.VCProjectEngine Public Module Module1 Sub Test() Dim prj As VCProject Dim cfgs As IVCCollection Dim cfg, Dest As VCConfiguration Dim Dest_obj As Object prj = DTE.Solution.Projects.Item(1).Object cfgs = prj.Configurations cfg = cfgs.Item("Debug") Dest = cfgs.Item("Release") Dest_obj = Dest cfg.CopyTo(Dest_obj) End Sub End Module
Show: