Condividi tramite


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)

Syntax

'Declaration
Function AddPlatform ( _
    NewName As String, _
    ExistingName As String, _
    Propagate As Boolean _
) As Configurations
Configurations AddPlatform(
    string NewName,
    string ExistingName,
    bool Propagate
)
Configurations^ AddPlatform(
    String^ NewName, 
    String^ ExistingName, 
    [InAttribute] bool Propagate
)
abstract AddPlatform : 
        NewName:string * 
        ExistingName:string * 
        Propagate:bool -> Configurations
function AddPlatform(
    NewName : String, 
    ExistingName : String, 
    Propagate : boolean
) : Configurations

Parameters

  • ExistingName
    Type: System.String

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

  • Propagate
    Type: System.Boolean

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

Return Value

Type: EnvDTE.Configurations
A Configurations collection.

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.

.NET Framework Security

See Also

Reference

ConfigurationManager Interface

EnvDTE Namespace