次の方法で共有


IVsCfgProvider2.RenameCfgsOfCfgName Method

Assigns a new name to a configuration.

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

Syntax

'宣言
Function RenameCfgsOfCfgName ( _
    pszOldName As String, _
    pszNewName As String _
) As Integer
'使用
Dim instance As IVsCfgProvider2
Dim pszOldName As String
Dim pszNewName As String
Dim returnValue As Integer

returnValue = instance.RenameCfgsOfCfgName(pszOldName, _
    pszNewName)
int RenameCfgsOfCfgName(
    string pszOldName,
    string pszNewName
)
int RenameCfgsOfCfgName(
    [InAttribute] String^ pszOldName, 
    [InAttribute] String^ pszNewName
)
function RenameCfgsOfCfgName(
    pszOldName : String, 
    pszNewName : String
) : int

Parameters

  • pszOldName
    Type: System.String

    [in] String containing the old name of the target configuration.

  • pszNewName
    Type: System.String

    [in] String containing the new name of the target configuration.

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::RenameCfgsOfCfgName(
   [in] LPCOLESTR pszOldName,
   [in]LPCOLESTR pszNewName
);

Permissions

See Also

Reference

IVsCfgProvider2 Interface

IVsCfgProvider2 Members

Microsoft.VisualStudio.Shell.Interop Namespace