IVsCfgProvider2::AddCfgsOfCfgName Method (String^, String^, Int32)

 

Copies an existing configuration name or creates a new one.

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

int AddCfgsOfCfgName(
	String^ pszCfgName,
	String^ pszCloneCfgName,
	int fPrivate
)

Parameters

pszCfgName
Type: System::String^

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

pszCloneCfgName
Type: System::String^

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

fPrivate
Type: System::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.

Return Value

Type: System::Int32

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

From vsshell.idl:

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