ComponentRenameEventArgs ComponentRenameEventArgs ComponentRenameEventArgs ComponentRenameEventArgs Class

Definition

Stellt Daten für das ComponentRename-Ereignis bereit.Provides data for the ComponentRename event.

public ref class ComponentRenameEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(true)]
public class ComponentRenameEventArgs : EventArgs
type ComponentRenameEventArgs = class
    inherit EventArgs
Public Class ComponentRenameEventArgs
Inherits EventArgs
Vererbung
ComponentRenameEventArgsComponentRenameEventArgsComponentRenameEventArgsComponentRenameEventArgs
Attribute

Beispiele

Das folgende Beispiel veranschaulicht das Erstellen einer ComponentRenameEventArgs.The following example demonstrates creating a ComponentRenameEventArgs.

public:
   // This example method creates a ComponentRenameEventArgs using the specified arguments.
   // Typically, this type of event args is created by a design mode subsystem.
   ComponentRenameEventArgs^ CreateComponentRenameEventArgs( Object^ component, String^ oldName, String^ newName )
   {
      // The component that was renamed:          args.Component
      // The previous name of the component:      args.OldName
      // The new name of the component:           args.NewName
      return gcnew ComponentRenameEventArgs( component, oldName, newName );
   }
// This example method creates a ComponentRenameEventArgs using the specified arguments.
// Typically, this type of event args is created by a design mode subsystem.  
public ComponentRenameEventArgs CreateComponentRenameEventArgs(object component, string oldName, string newName)
{
    ComponentRenameEventArgs args = new ComponentRenameEventArgs(component, oldName, newName);

    // The component that was renamed:          args.Component
    // The previous name of the component:      args.OldName
    // The new name of the component:           args.NewName            

    return args;
}
' This example method creates a ComponentRenameEventArgs using the specified arguments.
' Typically, this type of event args is created by a design mode subsystem.  
Public Function CreateComponentRenameEventArgs(ByVal component As Object, ByVal oldName As String, ByVal newName As String) As ComponentRenameEventArgs
    Dim args As New ComponentRenameEventArgs(component, oldName, newName)

    ' The component that was renamed:          args.Component
    ' The previous name of the component:      args.OldName
    ' The new name of the component:           args.NewName            

    Return args
End Function

Hinweise

Ein ComponentRenameEventArgs enthält Daten über eine ComponentRename Ereignis.A ComponentRenameEventArgs provides data about a ComponentRename event.

Ein ComponentRenameEventArgs Objekt enthält die folgenden Informationen:A ComponentRenameEventArgs object provides the following information:

  • Ein Component Eigenschaft, die auf die Komponente, die umbenannt wird.A Component property that references the component being renamed.

  • Ein OldName Eigenschaft, die den alten Namen der Komponente angibt.An OldName property that indicates the old name of the component.

  • Ein NewName Eigenschaft, die den neuen Namen der Komponente angibt.A NewName property that indicates the new name of the component.

Konstruktoren

ComponentRenameEventArgs(Object, String, String) ComponentRenameEventArgs(Object, String, String) ComponentRenameEventArgs(Object, String, String) ComponentRenameEventArgs(Object, String, String)

Initialisiert eine neue Instanz der ComponentRenameEventArgs-Klasse.Initializes a new instance of the ComponentRenameEventArgs class.

Eigenschaften

Component Component Component Component

Ruft die Komponente ab, die umbenannt wird.Gets the component that is being renamed.

NewName NewName NewName NewName

Ruft den Namen der Komponente nach dem Umbenennungsereignis ab.Gets the name of the component after the rename event.

OldName OldName OldName OldName

Ruft den Namen der Komponente vor dem Umbenennungsereignis ab.Gets the name of the component before the rename event.

Methoden

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Bestimmt, ob das angegebene Objekt mit dem aktuellen Objekt identisch ist.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Fungiert als Standardhashfunktion.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Ruft den Type der aktuellen Instanz ab.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Erstellt eine flache Kopie des aktuellen Object.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.Returns a string that represents the current object.

(Inherited from Object)

Gilt für:

Siehe auch