IVsCfgProvider2.AddCfgsOfPlatformName(String, String) 方法

定义

复制现有的平台名称或创建一个新的平台名称。

public:
 int AddCfgsOfPlatformName(System::String ^ pszPlatformName, System::String ^ pszClonePlatformName);
public:
 int AddCfgsOfPlatformName(Platform::String ^ pszPlatformName, Platform::String ^ pszClonePlatformName);
int AddCfgsOfPlatformName(std::wstring const & pszPlatformName, std::wstring const & pszClonePlatformName);
public int AddCfgsOfPlatformName (string pszPlatformName, string pszClonePlatformName);
abstract member AddCfgsOfPlatformName : string * string -> int
Public Function AddCfgsOfPlatformName (pszPlatformName As String, pszClonePlatformName As String) As Integer

参数

pszPlatformName
String

中指向新平台名称的指针。

pszClonePlatformName
String

中一个指针,指向要复制的平台的名称,或 null 指示 AddCfgsOfPlatformName 应创建新平台的。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

HRESULT IVsCfgProvider2::AddCfgsOfPlatformName(  
   [in] LPCOLESTR pszPlatformName,  
   [in] LPCOLESTR pszClonePlatformName  
);  

适用于