IDesignerHost IDesignerHost IDesignerHost IDesignerHost Interface

Definición

Proporciona una interfaz para administrar transacciones y componentes de diseñador.Provides an interface for managing designer transactions and components.

public interface class IDesignerHost : IServiceProvider, System::ComponentModel::Design::IServiceContainer
[System.Runtime.InteropServices.ComVisible(true)]
public interface IDesignerHost : IServiceProvider, System.ComponentModel.Design.IServiceContainer
type IDesignerHost = interface
    interface IServiceContainer
    interface IServiceProvider
Public Interface IDesignerHost
Implements IServiceContainer, IServiceProvider
Derivado
Atributos
Implementaciones

Ejemplos

En el ejemplo de código siguiente se muestra cómo IDesignerHost obtener la interfaz de servicio desde un diseñador o un componente de sitio.The following example code demonstrates how to obtain the IDesignerHost service interface from a designer or sited component.

// Requests an IDesignerHost service from the design time environment using Component.Site.GetService()
IDesignerHost^ dh = static_cast<IDesignerHost^>(this->Component->Site->GetService( IDesignerHost::typeid ));
// Requests an IDesignerHost service from the design time environment using Component.Site.GetService()
IDesignerHost dh = (IDesignerHost) this.Component.Site.GetService(typeof(IDesignerHost));			
' Requests an IDesignerHost service from the design time environment using Component.Site.GetService()
Dim host As IDesignerHost = CType(Me.Component.Site.GetService(GetType(IDesignerHost)), IDesignerHost)

En el ejemplo de código siguiente se IDesignerHost muestra cómo usar la interfaz para enumerar los componentes del proyecto.The following example code demonstrates using the IDesignerHost interface to list project components.

#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.dll>

using namespace System;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;
using namespace System::Drawing;
using namespace System::Windows::Forms;
using namespace System::Security::Permissions;

// Provides a form containing a listbox that can display 
// a list of project components.
public ref class DesignerHostListForm: public System::Windows::Forms::Form
{
public:
   System::Windows::Forms::ListBox^ listBox1;

private:
   System::Windows::Forms::Button^ ok_button;

public:
   DesignerHostListForm()
   {
      this->Name = "DesignerHostListForm";
      this->Text = "List of design-time project components";
      this->SuspendLayout();
      this->listBox1 = gcnew System::Windows::Forms::ListBox;
      this->listBox1->Location = System::Drawing::Point( 8, 8 );
      this->listBox1->Name = "listBox1";
      this->listBox1->Size = System::Drawing::Size( 385, 238 );
      this->listBox1->TabIndex = 0;
      this->listBox1->Anchor = static_cast<AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) | System::Windows::Forms::AnchorStyles::Left) | System::Windows::Forms::AnchorStyles::Right);
      this->ok_button = gcnew System::Windows::Forms::Button;
      this->ok_button->DialogResult = System::Windows::Forms::DialogResult::OK;
      this->ok_button->Location = System::Drawing::Point( 232, 256 );
      this->ok_button->Name = "ok_button";
      this->ok_button->TabIndex = 1;
      this->ok_button->Text = "OK";
      this->ok_button->Anchor = static_cast<AnchorStyles>(System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right);
      this->ClientSize = System::Drawing::Size( 400, 285 );
      array<System::Windows::Forms::Control^>^temp2 = {this->ok_button,this->listBox1};
      this->Controls->AddRange( temp2 );
      this->ResumeLayout( false );
   }

public:
   ~DesignerHostListForm()
   {
   }
};


// You can double-click the component of an IDesignerHostExampleDesigner 
// to show a form containing a listbox that lists the name and type 
// of each component or control in the current design-time project.
public ref class IDesignerHostExampleDesigner: public IDesigner
{
private:
   System::ComponentModel::IComponent^ component;

public:
   IDesignerHostExampleDesigner(){}

   virtual void DoDefaultAction()
   {
      ListComponents();
   }

   virtual void Initialize( System::ComponentModel::IComponent^ component )
   {
      this->component = component;
      MessageBox::Show( "Double-click the IDesignerHostExample component to view a list of project components." );
   }


private:

   // Displays a list of components in the current design 
   // document when the default action of the designer is invoked.
   void ListComponents()
   {
      DesignerHostListForm^ listform = gcnew DesignerHostListForm;

      // Obtain an IDesignerHost service from the design environment.
      IDesignerHost^ host = dynamic_cast<IDesignerHost^>(this->component->Site->GetService( IDesignerHost::typeid ));

      // Get the project components container (control containment depends on Controls collections)
      IContainer^ container = host->Container;

      // Add each component's type name and name to the list box.
      System::Collections::IEnumerator^ myEnum = container->Components->GetEnumerator();
      while ( myEnum->MoveNext() )
      {
         IComponent^ component = safe_cast<IComponent^>(myEnum->Current);
         listform->listBox1->Items->Add( String::Concat( component->GetType()->Name, " : ", component->Site->Name ) );
      }

      listform->ShowDialog();
   }

public:

   property System::ComponentModel::IComponent^ Component 
   {
      virtual System::ComponentModel::IComponent^ get()
      {
         return this->component;
      }
   }

   property System::ComponentModel::Design::DesignerVerbCollection^ Verbs 
   {
      [PermissionSetAttribute(SecurityAction::Demand, Name="FullTrust")]
      virtual System::ComponentModel::Design::DesignerVerbCollection^ get()
      {
         DesignerVerbCollection^ dvc = gcnew DesignerVerbCollection;
         dvc->Add( gcnew DesignerVerb( "List Components",gcnew EventHandler( this, &IDesignerHostExampleDesigner::ListHandler ) ) );
         return dvc;
      }
   }

private:
   void ListHandler( Object^ /*sender*/, EventArgs^ /*e*/ )
   {
      ListComponents();
   }

public:
   ~IDesignerHostExampleDesigner(){}
};


// IDesignerHostExampleComponent is a component associated 
// with the IDesignerHostExampleDesigner that demonstrates 
// acquisition and use of the IDesignerHost service 
// to list project components.

[DesignerAttribute(IDesignerHostExampleDesigner::typeid)]
public ref class IDesignerHostExampleComponent: public System::ComponentModel::Component
{
public:
   IDesignerHostExampleComponent(){}

public:
   ~IDesignerHostExampleComponent(){}
};
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Windows.Forms;

namespace IDesignerHostExample
{	
    // IDesignerHostExampleComponent is a component associated 
    // with the IDesignerHostExampleDesigner that demonstrates 
    // acquisition and use of the IDesignerHost service 
    // to list project components.
    [DesignerAttribute(typeof(IDesignerHostExampleDesigner))]
    public class IDesignerHostExampleComponent : System.ComponentModel.Component
    {
        public IDesignerHostExampleComponent()
        {}

        protected override void Dispose( bool disposing )
        {
            base.Dispose( disposing );
        }
    }

    // You can double-click the component of an IDesignerHostExampleDesigner 
    // to show a form containing a listbox that lists the name and type 
    // of each component or control in the current design-time project.
    [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] 
    public class IDesignerHostExampleDesigner : IDesigner
    {
        private System.ComponentModel.IComponent component;

        public IDesignerHostExampleDesigner()
        {}

        public void DoDefaultAction()
        {
            ListComponents();
        }

        public void Initialize(System.ComponentModel.IComponent component)
        {
            this.component = component;
            MessageBox.Show("Double-click the IDesignerHostExample component to view a list of project components.");
        }

        // Displays a list of components in the current design 
        // document when the default action of the designer is invoked.
        private void ListComponents()
        {
            using (DesignerHostListForm listform = new DesignerHostListForm())
            {
                // Obtain an IDesignerHost service from the design environment.
                IDesignerHost host = (IDesignerHost)this.component.Site.GetService(typeof(IDesignerHost));
                // Get the project components container (control containment depends on Controls collections)
                IContainer container = host.Container;
                // Add each component's type name and name to the list box.
                foreach (IComponent component in container.Components)
                {
                    listform.listBox1.Items.Add(component.GetType().Name + " : " + component.Site.Name);
                }
                // Display the form.
                listform.ShowDialog();
            }
        }

        public System.ComponentModel.IComponent Component
        {
            get
            {
                return this.component;
            }
        }

        public System.ComponentModel.Design.DesignerVerbCollection Verbs
        {
            get
            {
                DesignerVerbCollection dvc = new DesignerVerbCollection();
                dvc.Add( new DesignerVerb("List Components", new EventHandler(ListHandler)) );
                return dvc;
            }
        }

        private void ListHandler(object sender, EventArgs e)
        {
            ListComponents();
        }

        public void Dispose() {	}
    }

    // Provides a form containing a listbox that can display 
    // a list of project components.
    public class DesignerHostListForm : System.Windows.Forms.Form
    {
        public System.Windows.Forms.ListBox listBox1;
        private System.Windows.Forms.Button ok_button;
        
        public DesignerHostListForm()
        {
            this.Name = "DesignerHostListForm";
            this.Text = "List of design-time project components";
            this.SuspendLayout();
            this.listBox1 = new System.Windows.Forms.ListBox();						
            this.listBox1.Location = new System.Drawing.Point(8, 8);
            this.listBox1.Name = "listBox1";
            this.listBox1.Size = new System.Drawing.Size(385, 238);
            this.listBox1.TabIndex = 0;	
            this.listBox1.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
                | System.Windows.Forms.AnchorStyles.Left) 
                | System.Windows.Forms.AnchorStyles.Right);		
            this.ok_button = new System.Windows.Forms.Button();
            this.ok_button.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.ok_button.Location = new System.Drawing.Point(232, 256);
            this.ok_button.Name = "ok_button";
            this.ok_button.TabIndex = 1;
            this.ok_button.Text = "OK";
            this.ok_button.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
            this.ClientSize = new System.Drawing.Size(400, 285);
            this.Controls.AddRange(new System.Windows.Forms.Control[] { this.ok_button, this.listBox1 });
            this.ResumeLayout(false);	
        }

        protected override void Dispose( bool disposing )
        {			
            base.Dispose( disposing );
        }	
    }
}
Imports System.ComponentModel
Imports System.ComponentModel.Design
Imports System.Drawing
Imports System.Windows.Forms

Namespace IDesignerHostExample
   
   ' IDesignerHostExampleComponent is a component associated 
   ' with the IDesignerHostExampleDesigner that demonstrates 
   ' acquisition and use of the IDesignerHost service 
   ' to list project components.
    <DesignerAttribute(GetType(IDesignerHostExampleDesigner))> _
    Public Class IDesignerHostExampleComponent
        Inherits System.ComponentModel.Component

        Public Sub New()
        End Sub 'New

        Protected Overloads Sub Dispose(ByVal disposing As Boolean)
            MyBase.Dispose(disposing)
        End Sub 
    End Class 

    ' You can double-click the component of a IDesignerHostExampleDesigner
    ' to show a form containing a listbox that lists the name and type 
    ' of each component or control in the current design-time project.
    <System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Name:="FullTrust")> _
    Public Class IDesignerHostExampleDesigner
        Implements IDesigner
        Private component_ As System.ComponentModel.IComponent

        Public Sub New()
        End Sub 'New

        Public Sub DoDefaultAction() Implements IDesigner.DoDefaultAction
            ListComponents()
        End Sub

        Public Sub Initialize(ByVal component As System.ComponentModel.IComponent) Implements IDesigner.Initialize
            Me.component_ = component
            MessageBox.Show("Double-click the IDesignerHostExample component to view a list of project components.")
        End Sub

        ' Displays a list of components in the current design 
        ' document when the default action of the designer is invoked.
        Private Sub ListComponents()

            Using listform As New DesignerHostListForm()

                ' Obtain an IDesignerHost service from the design environment.
                Dim host As IDesignerHost = CType(Me.Component.Site.GetService(GetType(IDesignerHost)), IDesignerHost)
                ' Get the project components container (control containment depends on Controls collections)
                Dim container As IContainer = host.Container
                ' Add each component's type name and name to the list box.
                Dim comp As Component
                For Each comp In container.Components
                    listform.listBox1.Items.Add((comp.GetType().Name + " : " + Component.Site.Name))
                Next comp
                ' Display the form.
                listform.ShowDialog()

            End Using

        End Sub

        Public ReadOnly Property Component() As System.ComponentModel.IComponent Implements IDesigner.Component
            Get
                Return component_
            End Get
        End Property

        Public ReadOnly Property Verbs() As System.ComponentModel.Design.DesignerVerbCollection Implements IDesigner.Verbs
            Get
                Dim dvc As New DesignerVerbCollection()
                dvc.Add(New DesignerVerb("List Components", New EventHandler(AddressOf ListHandler)))
                Return dvc
            End Get
        End Property

        Private Sub ListHandler(ByVal sender As Object, ByVal e As EventArgs)
            ListComponents()
        End Sub

        Public Sub Dispose() Implements IDisposable.Dispose
        End Sub
    End Class
    _ 

    ' Provides a form containing a list box that can display 
    ' a list of project components.
    Public Class DesignerHostListForm
        Inherits System.Windows.Forms.Form
        Public listBox1 As System.Windows.Forms.ListBox
        Private ok_button As System.Windows.Forms.Button

        Public Sub New()
            Me.Name = "DesignerHostListForm"
            Me.Text = "List of design-time project components"
            Me.SuspendLayout()
            Me.listBox1 = New System.Windows.Forms.ListBox()
            Me.listBox1.Location = New System.Drawing.Point(8, 8)
            Me.listBox1.Name = "listBox1"
            Me.listBox1.Size = New System.Drawing.Size(385, 238)
            Me.listBox1.TabIndex = 0
            Me.listBox1.Anchor = (((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
            Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right)
            Me.ok_button = New System.Windows.Forms.Button()
            Me.ok_button.DialogResult = System.Windows.Forms.DialogResult.OK
            Me.ok_button.Location = New System.Drawing.Point(232, 256)
            Me.ok_button.Name = "ok_button"
            Me.ok_button.TabIndex = 1
            Me.ok_button.Text = "OK"
            Me.ok_button.Anchor = (System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right)
            Me.ClientSize = New System.Drawing.Size(400, 285)
            Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.ok_button, Me.listBox1})
            Me.ResumeLayout(False)
        End Sub 

        Protected Overloads Sub Dispose(ByVal disposing As Boolean)
            MyBase.Dispose(disposing)
        End Sub 
    End Class 
End Namespace 

Comentarios

IDesignerHostes una interfaz que funciona con la .NET Framework arquitectura del diseñador de formularios para proporcionar compatibilidad con la administración de transacciones y componentes del diseñador.IDesignerHost is an interface that works with the .NET Framework forms designer architecture to provide support for designer transaction and component management.

El .NET Framework no proporciona una implementación de esta interfaz.The .NET Framework does not provide an implementation of this interface. La interfaz se implementa mediante herramientas de desarrollo que admiten diseñadores.The interface is implemented by development tools that support designers.

Notas a los autores de las llamadas

Para obtener una implementación de IDesignerHost desde un entorno de desarrollo, GetService(Type) llame a mientras el componente está activo en modo de diseño, pasando IDesignerHost el tipo de IDesignerHost para solicitar una interfaz de servicio.To obtain an implementation of IDesignerHost from a development environment, call GetService(Type) while your component is active in design mode, passing the type of IDesignerHost to request an IDesignerHost service interface.

IDesignerHostproporciona los siguientes miembros relacionados con el estado del diseñador:IDesignerHost provides the following members related to designer state: -La Loading propiedad indica si se está cargando un diseñador o un documento.- The Loading property indicates whether a designer or document is being loaded.

: El Activated evento tiene lugar cuando se activa un diseñador antes de la presentación.- The Activated event occurs when a designer is activated before display.

: El Deactivated evento tiene lugar cuando se desactiva un diseñador.- The Deactivated event occurs when a designer is deactivated.

: El LoadComplete evento se produce después de cargar un documento.- The LoadComplete event occurs after a document is loaded.

-El Activate() método activa el diseñador.- The Activate() method activates the designer.

IDesignerHostproporciona los siguientes miembros relacionados con la administración de componentes de:IDesignerHost provides the following members related to managing components: -La Container propiedad indica el contenedor para el host del diseñador.- The Container property indicates the container for the designer host.

-La RootComponent propiedad indica la clase base para el componente raíz.- The RootComponent property indicates the base class for the root component.

-La RootComponentClassName propiedad indica el nombre de la clase del componente raíz.- The RootComponentClassName property indicates the name of the class of the root component.

-El CreateComponent(Type) método crea el tipo de componente especificado.- The CreateComponent(Type) method creates the specified type of component.

-El DestroyComponent(IComponent) método destruye el componente especificado.- The DestroyComponent(IComponent) method destroys the specified component.

-El GetDesigner(IComponent) método obtiene el diseñador asociado a un componente especificado.- The GetDesigner(IComponent) method gets the designer associated with a specified component.

-El GetType(String) método obtiene una instancia del tipo con el nombre especificado.- The GetType(String) method gets an instance of the type with the specified name.

IDesignerHostproporciona los siguientes miembros relacionados con la administración de transacciones:IDesignerHost provides the following members related to managing transactions: -La InTransaction propiedad indica si el diseñador está en una transacción.- The InTransaction property indicates whether the designer is in a transaction.

-La TransactionDescription propiedad indica la descripción de la transacción actual.- The TransactionDescription property indicates the current transaction description.

: El TransactionClosed evento tiene lugar cuando se completa una transacción.- The TransactionClosed event occurs when a transaction has been completed.

: El TransactionClosing evento tiene lugar cuando una transacción está a punto de completarse.- The TransactionClosing event occurs when a transaction is about to be completed.

: El TransactionOpened evento tiene lugar cuando se inicia una transacción.- The TransactionOpened event occurs when a transaction has begun.

: El TransactionOpening evento tiene lugar cuando una transacción está a punto de comenzar.- The TransactionOpening event occurs when a transaction is about to begin.

-El CreateTransaction() método crea y devuelve una nueva transacción.- The CreateTransaction() method creates and returns a new transaction.

Propiedades

Container Container Container Container

Obtiene el contenedor para el host del diseñador.Gets the container for this designer host.

InTransaction InTransaction InTransaction InTransaction

Obtiene un valor que indica si el host del diseñador está ejecutando actualmente una transacción.Gets a value indicating whether the designer host is currently in a transaction.

Loading Loading Loading Loading

Obtiene un valor que indica si el host del diseñador está cargando el documento.Gets a value indicating whether the designer host is currently loading the document.

RootComponent RootComponent RootComponent RootComponent

Obtiene la instancia de la clase base que se utiliza como componente raíz para el diseño actual.Gets the instance of the base class used as the root component for the current design.

RootComponentClassName RootComponentClassName RootComponentClassName RootComponentClassName

Obtiene el nombre completo de la clase que se está diseñando.Gets the fully qualified name of the class being designed.

TransactionDescription TransactionDescription TransactionDescription TransactionDescription

Obtiene una descripción de la transacción actual.Gets the description of the current transaction.

Métodos

Activate() Activate() Activate() Activate()

Activa el diseñador hospedado en este host.Activates the designer that this host is hosting.

AddService(Type, Object) AddService(Type, Object) AddService(Type, Object) AddService(Type, Object)

Agrega el servicio especificado al contenedor de servicios.Adds the specified service to the service container.

(Inherited from IServiceContainer)
AddService(Type, Object, Boolean) AddService(Type, Object, Boolean) AddService(Type, Object, Boolean) AddService(Type, Object, Boolean)

Agrega el servicio especificado al contenedor de servicios y, opcionalmente, promueve el servicio para los contenedores de servicios principales.Adds the specified service to the service container, and optionally promotes the service to any parent service containers.

(Inherited from IServiceContainer)
AddService(Type, ServiceCreatorCallback) AddService(Type, ServiceCreatorCallback) AddService(Type, ServiceCreatorCallback) AddService(Type, ServiceCreatorCallback)

Agrega el servicio especificado al contenedor de servicios.Adds the specified service to the service container.

(Inherited from IServiceContainer)
AddService(Type, ServiceCreatorCallback, Boolean) AddService(Type, ServiceCreatorCallback, Boolean) AddService(Type, ServiceCreatorCallback, Boolean) AddService(Type, ServiceCreatorCallback, Boolean)

Agrega el servicio especificado al contenedor de servicios y, opcionalmente, promueve el servicio para los contenedores de servicios principales.Adds the specified service to the service container, and optionally promotes the service to parent service containers.

(Inherited from IServiceContainer)
CreateComponent(Type) CreateComponent(Type) CreateComponent(Type) CreateComponent(Type)

Crea un componente del tipo especificado y lo agrega al documento de diseño.Creates a component of the specified type and adds it to the design document.

CreateComponent(Type, String) CreateComponent(Type, String) CreateComponent(Type, String) CreateComponent(Type, String)

Crea un componente del tipo y nombre especificados y lo agrega al documento de diseño.Creates a component of the specified type and name, and adds it to the design document.

CreateTransaction() CreateTransaction() CreateTransaction() CreateTransaction()

Crea una DesignerTransaction que puede encapsular secuencias de eventos para mejorar el rendimiento y habilitar funcionalidad para las operaciones de deshacer y rehacer.Creates a DesignerTransaction that can encapsulate event sequences to improve performance and enable undo and redo support functionality.

CreateTransaction(String) CreateTransaction(String) CreateTransaction(String) CreateTransaction(String)

Crea una DesignerTransaction que puede encapsular secuencias de eventos para mejorar el rendimiento y habilitar funcionalidad para las operaciones de deshacer y rehacer, utilizando la descripción de transacción especificada.Creates a DesignerTransaction that can encapsulate event sequences to improve performance and enable undo and redo support functionality, using the specified transaction description.

DestroyComponent(IComponent) DestroyComponent(IComponent) DestroyComponent(IComponent) DestroyComponent(IComponent)

Destruye el componente especificado y lo quita del contenedor del diseñador.Destroys the specified component and removes it from the designer container.

GetDesigner(IComponent) GetDesigner(IComponent) GetDesigner(IComponent) GetDesigner(IComponent)

Obtiene la instancia del diseñador que contiene el componente especificado.Gets the designer instance that contains the specified component.

GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Obtiene el objeto de servicio del tipo especificado.Gets the service object of the specified type.

(Inherited from IServiceProvider)
GetType(String) GetType(String) GetType(String) GetType(String)

Obtiene una instancia del nombre de tipo completo especificado.Gets an instance of the specified, fully qualified type name.

RemoveService(Type) RemoveService(Type) RemoveService(Type) RemoveService(Type)

Quita el tipo de servicio especificado del contenedor de servicios.Removes the specified service type from the service container.

(Inherited from IServiceContainer)
RemoveService(Type, Boolean) RemoveService(Type, Boolean) RemoveService(Type, Boolean) RemoveService(Type, Boolean)

Quita el tipo de servicio especificado del contenedor de servicios y, opcionalmente, promueve el servicio para los contenedores de servicios principales.Removes the specified service type from the service container, and optionally promotes the service to parent service containers.

(Inherited from IServiceContainer)

Eventos

Activated Activated Activated Activated

Se produce cuando se activa el diseñador.Occurs when this designer is activated.

Deactivated Deactivated Deactivated Deactivated

Se produce cuando se desactiva el diseñador.Occurs when this designer is deactivated.

LoadComplete LoadComplete LoadComplete LoadComplete

Se produce cuando el diseñador termina de cargar su documento.Occurs when this designer completes loading its document.

TransactionClosed TransactionClosed TransactionClosed TransactionClosed

Agrega un controlador de eventos para el evento TransactionClosed.Adds an event handler for the TransactionClosed event.

TransactionClosing TransactionClosing TransactionClosing TransactionClosing

Agrega un controlador de eventos para el evento TransactionClosing.Adds an event handler for the TransactionClosing event.

TransactionOpened TransactionOpened TransactionOpened TransactionOpened

Agrega un controlador de eventos para el evento TransactionOpened.Adds an event handler for the TransactionOpened event.

TransactionOpening TransactionOpening TransactionOpening TransactionOpening

Agrega un controlador de eventos para el evento TransactionOpening.Adds an event handler for the TransactionOpening event.

Se aplica a

Consulte también: