ComponentEventArgs Clase
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Proporciona datos para los eventos ComponentAdded, ComponentAdding, ComponentRemoved y ComponentRemoving.
public ref class ComponentEventArgs : EventArgs
public class ComponentEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(true)]
public class ComponentEventArgs : EventArgs
type ComponentEventArgs = class
inherit EventArgs
[<System.Runtime.InteropServices.ComVisible(true)>]
type ComponentEventArgs = class
inherit EventArgs
Public Class ComponentEventArgs
Inherits EventArgs
- Herencia
- Atributos
En el ejemplo siguiente se muestra cómo crear un ComponentEventArgsobjeto .
public:
// This example method creates a ComponentEventArgs using the specified argument.
// Typically, this type of event args is created by a design mode subsystem.
ComponentEventArgs^ CreateComponentEventArgs( IComponent^ component )
{
// The component that is related to the event: args.Component
return gcnew ComponentEventArgs( component );
}
// This example method creates a ComponentEventArgs using the specified argument.
// Typically, this type of event args is created by a design mode subsystem.
public ComponentEventArgs CreateComponentEventArgs(IComponent component)
{
ComponentEventArgs args = new ComponentEventArgs(component);
// The component that is related to the event: args.Component
return args;
}
' This example method creates a ComponentEventArgs using the specified argument.
' Typically, this type of event args is created by a design mode subsystem.
Public Function CreateComponentEventArgs(ByVal component As IComponent) As ComponentEventArgs
Dim args As New ComponentEventArgs(component)
' The component that is related to the event: args.Component
Return args
End Function
ComponentEventArgs es la clase de argumentos de evento raíz para todos los eventos de administración de componentes. Este tipo de evento se produce al agregar o quitar componentes mediante un diseñador.
Component |
Inicializa una nueva instancia de la clase ComponentEventArgs. |
Component |
Obtiene el componente asociado al evento. |
Equals(Object) |
Determina si el objeto especificado es igual que el objeto actual. (Heredado de Object) |
Get |
Sirve como la función hash predeterminada. (Heredado de Object) |
Get |
Obtiene el Type de la instancia actual. (Heredado de Object) |
Memberwise |
Crea una copia superficial del Object actual. (Heredado de Object) |
To |
Devuelve una cadena que representa el objeto actual. (Heredado de Object) |
Produto | Versións |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Comentarios de .NET
.NET é un proxecto de código aberto. Selecciona unha ligazón para ofrecer comentarios: