VCProject.AddPlatform 方法

向当前项目添加平台(未对 Visual C++ 启用)。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
Sub AddPlatform ( _
    PlatformName As String _
)
void AddPlatform(
    string PlatformName
)
void AddPlatform(
    [InAttribute] String^ PlatformName
)
abstract AddPlatform : 
        PlatformName:string -> unit
function AddPlatform(
    PlatformName : String
)

参数

  • PlatformName
    类型:String

    必选。 平台名称。

备注

对于 Visual C++,只 Win32 平台,是每个项目的一部分,则支持。

Platforms 属性返回可生成此项目的平台。

.NET Framework 安全性

请参阅

参考

VCProject 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间