Compartir a través de


ConfigurationManager.AddPlatform(String, String, Boolean) Method

Definition

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

public:
 EnvDTE::Configurations ^ AddPlatform(System::String ^ NewName, System::String ^ ExistingName, bool Propagate);
[System.Runtime.InteropServices.DispId(9)]
public EnvDTE.Configurations AddPlatform (string NewName, string ExistingName, bool Propagate);
[<System.Runtime.InteropServices.DispId(9)>]
abstract member AddPlatform : string * string * bool -> EnvDTE.Configurations
Public Function AddPlatform (NewName As String, ExistingName As String, Propagate As Boolean) As Configurations

Parameters

NewName
String

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

ExistingName
String

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

Propagate
Boolean

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

Returns

A Configurations collection.

Attributes

Remarks

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.

Applies to