Editare

Partajați prin


BindableComponent Class

Definition

Note

To use this preview API, you must enable preview features in your project by setting the EnablePreviewFeatures property to True in your project file. For more information, see https://aka.ms/dotnet-preview-features.

Base class for components that provide properties that can be data bound with the Windows Forms Designer.

public ref class BindableComponent abstract : System::ComponentModel::Component, IDisposable, System::Windows::Forms::IBindableComponent
[System.Runtime.Versioning.RequiresPreviewFeatures]
public abstract class BindableComponent : System.ComponentModel.Component, IDisposable, System.Windows.Forms.IBindableComponent
public abstract class BindableComponent : System.ComponentModel.Component, IDisposable, System.Windows.Forms.IBindableComponent
[<System.Runtime.Versioning.RequiresPreviewFeatures>]
type BindableComponent = class
    inherit Component
    interface IBindableComponent
    interface IComponent
    interface IDisposable
type BindableComponent = class
    inherit Component
    interface IBindableComponent
    interface IComponent
    interface IDisposable
Public MustInherit Class BindableComponent
Inherits Component
Implements IBindableComponent, IDisposable
Inheritance
BindableComponent
Derived
Attributes
Implements

Constructors

BindableComponent()

Properties

BindingContext

Gets or sets the collection of currency managers for the IBindableComponent.

CanRaiseEvents

Gets a value indicating whether the component can raise an event.

(Inherited from Component)
Container

Gets the IContainer that contains the Component.

(Inherited from Component)
DataBindings

Gets the collection of data-binding objects for this IBindableComponent.

DesignMode

Gets a value that indicates whether the Component is currently in design mode.

(Inherited from Component)
Events

Gets the list of event handlers that are attached to this Component.

(Inherited from Component)
Site

Gets or sets the ISite of the Component.

(Inherited from Component)

Methods

CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Dispose()

Releases all resources used by the Component.

(Inherited from Component)
Dispose(Boolean)

Releases the unmanaged resources used by the Component and optionally releases the managed resources.

(Inherited from Component)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetService(Type)

Returns an object that represents a service provided by the Component or by its Container.

(Inherited from Component)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
OnBindingContextChanged(EventArgs)

Raises the BindingContextChanged event.

ToString()

Returns a String containing the name of the Component, if any. This method should not be overridden.

(Inherited from Component)

Events

BindingContextChanged

Occurs when the binding context has changed.

Disposed

Occurs when the component is disposed by a call to the Dispose() method.

(Inherited from Component)

Applies to