This documentation is archived and is not being maintained.

ConfigurationManager.AddPlatform Method

Creates build settings for a new operating system platform based on the Configuration object of an existing platform.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

Configurations AddPlatform (
	string NewName,
	string ExistingName,
	[InAttribute] bool Propagate
Configurations AddPlatform (
	String NewName, 
	String ExistingName, 
	/** @attribute InAttribute() */ boolean Propagate
function AddPlatform (
	NewName : String, 
	ExistingName : String, 
	Propagate : boolean
) : Configurations



Required. The name of the new platform as found in the SupportedPlatforms property.


Required. The name of the platform to copy in order to create the new one.


Required. true if the platform should be propagated, false if not.

Return Value

A Configurations collection.

AddPlatform returns a collection of new Configuration objects. If the value provided to ExistingName is not in the SupportedPlatforms property, then AddPlatform fails. If the value provided to NewName already exists for this project, then AddPlatform fails and alerts you that the ExistingName settings were not copied.