Export (0) Print
Expand All
Cut
Run
Expand Minimize

AddPlatform Method

Visual Studio .NET 2003

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

[Visual Basic .NET]
Public Function AddPlatform( _
   ByVal NewName As String, _
   ByVal ExistingName As String, _
   ByVal Propigate As Boolean _
) As Configurations
[Visual Basic 6]
Function AddPlatform( _
   ByVal NewName As String, _
   ByVal ExistingName As String, _
   ByVal Propigate As Boolean _
) As Configurations
[C++]
HRESULT __stdcall AddPlatform(
   BSTR NewName,
   BSTR ExistingName,
   VARIANT_BOOL Propigate,
   /* [out, retval] */ Configurations** retVal
);
[C#]
public Configurations AddPlatform(
   string NewName,
   string ExistingName,
   bool Propigate
);
[JScript .NET]
public function AddPlatform(
   NewName : String,
   ExistingName : String,
   Propigate : Boolean
) : Configurations

Parameters

NewName
Required. The name of the new platform as found in the SupportedPlatforms Property.
ExistingName
Required. The name of the platform to copy in order to create the new one.
Propagate
Required. True if the platform should be propagated, False if not.

Return Value

Returns 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 this method fails. If the value provided to NewName already exists for this project, then this method fails and alerts you that the ExistingName settings were not copied.

See Also

Configuration Object | SupportedPlatforms Property

Applies To: ConfigurationManager Object

Show:
© 2014 Microsoft