Partager via


IVsCfgProvider2.AddCfgsOfCfgName Method

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)

Syntax

'Déclaration
Function AddCfgsOfCfgName ( _
    pszCfgName As String, _
    pszCloneCfgName As String, _
    fPrivate As Integer _
) As Integer
'Utilisation
Dim instance As IVsCfgProvider2
Dim pszCfgName As String
Dim pszCloneCfgName As String
Dim fPrivate As Integer
Dim returnValue As Integer

returnValue = instance.AddCfgsOfCfgName(pszCfgName, _
    pszCloneCfgName, fPrivate)
int AddCfgsOfCfgName(
    string pszCfgName,
    string pszCloneCfgName,
    int fPrivate
)
int AddCfgsOfCfgName(
    [InAttribute] String^ pszCfgName, 
    [InAttribute] String^ pszCloneCfgName, 
    [InAttribute] int fPrivate
)
abstract AddCfgsOfCfgName : 
        pszCfgName:string * 
        pszCloneCfgName:string * 
        fPrivate:int -> int 
function AddCfgsOfCfgName(
    pszCfgName : String, 
    pszCloneCfgName : String, 
    fPrivate : int
) : int

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 nulla null reference (Nothing in Visual Basic), 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.

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsCfgProvider2 Interface

IVsCfgProvider2 Members

Microsoft.VisualStudio.Shell.Interop Namespace