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
'Declaration
Function RenameCfgsOfCfgName ( _
pszOldName As String, _
pszNewName As String _
) As Integer
int RenameCfgsOfCfgName(
string pszOldName,
string pszNewName
)
int RenameCfgsOfCfgName(
[InAttribute] String^ pszOldName,
[InAttribute] String^ pszNewName
)
abstract RenameCfgsOfCfgName :
pszOldName:string *
pszNewName:string -> int
function RenameCfgsOfCfgName(
pszOldName : String,
pszNewName : String
) : int
Parameters
pszOldName
Type: String[in] String containing the old name of the target configuration.
pszNewName
Type: String[in] String containing the new name of the target configuration.
Return Value
Type: 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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.