Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- clrt
Type: Microsoft.VisualStudio.TextManager.Interop.ContainedLanguageRenameType
[in] A value from the ContainedLanguageRenameType enumeration indicating what type of name was changed.
- 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
- 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.