Compartir a través de


IVsContainedLanguageCodeSupport.OnRenamed Method

Called from a containing IVsContainedLanguageHost object indicating that a rename of a specified type was initiated.

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

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
);

This method is typically called from the OnRenamed method in the IVsContainedLanguageHost interface that is in turn called from the contained language service if a member name was renamed.

.NET Framework Security

See Also

Reference

IVsContainedLanguageCodeSupport Interface

Microsoft.VisualStudio.TextManager.Interop Namespace