IVsCfgProvider2.AddCfgsOfCfgName(String, String, Int32) Method

Definition

Copies an existing configuration name or creates a new one.

public:
 int AddCfgsOfCfgName(System::String ^ pszCfgName, System::String ^ pszCloneCfgName, int fPrivate);
public:
 int AddCfgsOfCfgName(Platform::String ^ pszCfgName, Platform::String ^ pszCloneCfgName, int fPrivate);
int AddCfgsOfCfgName(std::wstring const & pszCfgName, std::wstring const & pszCloneCfgName, int fPrivate);
public int AddCfgsOfCfgName (string pszCfgName, string pszCloneCfgName, int fPrivate);
abstract member AddCfgsOfCfgName : string * string * int -> int
Public Function AddCfgsOfCfgName (pszCfgName As String, pszCloneCfgName As String, fPrivate As Integer) As Integer

Parameters

pszCfgName
String

[in] Pointer to the name of the new configuration.

pszCloneCfgName
String

[in] Pointer to the name of the configuration to copy, or null, indicating that AddCfgsOfCfgName should create a new configuration.

fPrivate
Int32

[in] Flag indicating whether or not the new configuration is private. If fPrivate is set to true, the configuration is private. If set to false, the configuration is public. This flag can be ignored.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsCfgProvider2::AddCfgsOfCfgName(  
   [in] LPCOLESTR pszCfgName,  
   [in] LPCOLESTR pszCloneCfgName,  
   [in]BOOL fPrivate  
);  

Applies to