Share via


IVsContainedLanguageHost.OnRenamed Method

Called to notify the editor that a name has been changed.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Function OnRenamed ( _
    clrt As ContainedLanguageRenameType, _
    bstrOldID As String, _
    bstrNewID As String _
) As Integer
int OnRenamed(
    ContainedLanguageRenameType clrt,
    string bstrOldID,
    string bstrNewID
)
int OnRenamed(
    [InAttribute] ContainedLanguageRenameType clrt, 
    [InAttribute] String^ bstrOldID, 
    [InAttribute] String^ bstrNewID
)
abstract OnRenamed : 
        clrt:ContainedLanguageRenameType * 
        bstrOldID:string * 
        bstrNewID:string -> int
function OnRenamed(
    clrt : ContainedLanguageRenameType, 
    bstrOldID : String, 
    bstrNewID : String
) : int

Parameters

  • bstrOldID
    Type: System.String

    [in] The fully qualified old name. For example, "MyNamespace.MyClass.MyMethod".

  • bstrNewID
    Type: System.String

    [in] The fully qualified new name. For example, "MyNamespace.MyClass.MyNewMethod".

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT OnRenamed(
   [in] ContainedLanguageRenameType clrt,
   [in] BSTR                        bstrOldID,
   [in] BSTR                        bstrNewID
);

.NET Framework Security

See Also

Reference

IVsContainedLanguageHost Interface

Microsoft.VisualStudio.TextManager.Interop Namespace