根据现有平台的 Configuration 对象来创建新操作系统平台的生成设置。
命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)
语法
声明
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
参数
- NewName
 类型:System.String
 必选。新平台的名称,与 SupportedPlatforms 属性中的名称一样。
- ExistingName
 类型:System.String
 必选。为创建新平台而要复制的平台名称。
- Propagate
 类型:System.Boolean
 必选。如果应传播平台,则为 true;否则为 false。
返回值
类型:EnvDTE.Configurations
一个 Configurations 集合。
备注
AddPlatform 返回新 Configuration 对象的集合。 如果提供给 ExistingName 的值不在 SupportedPlatforms 属性中,则 AddPlatform 失败。 如果此项目中已存在为 NewName 提供的值,则 AddPlatform 失败,并提醒您未复制 ExistingName 设置。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。