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
)
abstract RenameCfgsOfCfgName :
pszOldName:string *
pszNewName:string -> int
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
);
.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.