Share via


View.OnRename Method (String, SyncStatus)

 

Called when the Rename standard verb is triggered.

Namespace:   Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

Syntax

protected virtual void OnRename(
    string newText,
    SyncStatus status
)
protected:
virtual void OnRename(
    String^ newText,
    SyncStatus^ status
)
abstract OnRename : 
        newText:string *
        status:SyncStatus -> unit
override OnRename : 
        newText:string *
        status:SyncStatus -> unit
Protected Overridable Sub OnRename (
    newText As String,
    status As SyncStatus
)

Parameters

  • newText
    Type: System.String

    The new text for the list view item.

Remarks

The snap-in may accept or reject the rename. To reject the rename, no action is taken. To accept the rename, the display name must be explicitly set for the list view item. This method should never get called for a Windows Forms View, since the Rename verb is not supported for the FormView class.

See Also

View Class
Microsoft.ManagementConsole Namespace

Return to top