AddCfgsOfCfgName Method
This documentation is archived and is not being maintained.

IVsCfgProvider2.AddCfgsOfCfgName Method

Copies an existing configuration name or creates a new one.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in

int AddCfgsOfCfgName (
	[InAttribute] string pszCfgName,
	[InAttribute] string pszCloneCfgName,
	[InAttribute] int fPrivate
int AddCfgsOfCfgName (
	/** @attribute InAttribute() */ String pszCfgName, 
	/** @attribute InAttribute() */ String pszCloneCfgName, 
	/** @attribute InAttribute() */ int fPrivate
function AddCfgsOfCfgName (
	pszCfgName : String, 
	pszCloneCfgName : String, 
	fPrivate : int
) : int



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


[in] Pointer to the name of the configuration to copy, or a null reference (Nothing in Visual Basic), indicating that AddCfgsOfCfgName should create a new configuration.


[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.

Return Value

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

COM Signature

From vsshell.idl:

HRESULT IVsCfgProvider2::AddCfgsOfCfgName(
   [in] LPCOLESTR pszCfgName,
   [in] LPCOLESTR pszCloneCfgName,
   [in]BOOL fPrivate
© 2016 Microsoft