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
'Usage
Dim instance As IVsContainedLanguageCodeSupport
Dim clrt As ContainedLanguageRenameType
Dim bstrOldID As String
Dim bstrNewID As String
Dim returnValue As Integer
returnValue = instance.OnRenamed(clrt, _
bstrOldID, bstrNewID)
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
- clrt
Type: Microsoft.VisualStudio.TextManager.Interop.ContainedLanguageRenameType
[in] A value from the ContainedLanguageRenameType enumeration specifying what is being renamed.
- bstrOldID
Type: System.String
[in] The old name.
- bstrNewID
Type: System.String
[in] The new name.
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
- 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.
See Also
Reference
IVsContainedLanguageCodeSupport Interface