8 [DesignerCategory(
"Component")]
11 private static readonly
object EventDisposed =
new object();
110 protected virtual void Dispose(
bool disposing)
116 if (site !=
null && site.
Container !=
null)
140 ISite site = this.site;
143 return site.
Name +
" [" + GetType().FullName +
"]";
145 return GetType().FullName;
string Name
Gets or sets the name of the component associated with the T:System.ComponentModel....
virtual ISite Site
Gets or sets the T:System.ComponentModel.ISite of the T:System.ComponentModel.Component.
static void SuppressFinalize(object obj)
Requests that the common language runtime not call the finalizer for the specified object.
EditorBrowsableState
Specifies the browsable state of a property or method from within an editor.
Provides a mechanism for releasing unmanaged resources.To browse the .NET Framework source code for t...
void AddHandler(object key, Delegate value)
Adds a delegate to the list.
object GetService(Type serviceType)
Gets the service object of the specified type.
Provides a simple list of delegates. This class cannot be inherited.
override string ToString()
Returns a T:System.String containing the name of the T:System.ComponentModel.Component,...
Represents the base class for classes that contain event data, and provides a value to use for events...
EventHandlerList Events
Gets the list of event handlers that are attached to this T:System.ComponentModel....
void RemoveHandler(object key, Delegate value)
Removes a delegate from the list.
Provides functionality for containers. Containers are objects that logically contain zero or more com...
static readonly EventArgs Empty
Provides a value to use with events that do not have event data.
void Dispose()
Releases all resources used by the T:System.ComponentModel.Component.
virtual bool CanRaiseEvents
Gets a value indicating whether the component can raise an event.
delegate void EventHandler(object sender, EventArgs e)
Represents the method that will handle an event that has no event data.
Provides the base implementation for the T:System.ComponentModel.IComponent interface and enables obj...
Provides functionality required by all components.
Represents type declarations: class types, interface types, array types, value types,...
EventHandler Disposed
Occurs when the component is disposed by a call to the M:System.ComponentModel.Component....
void Remove(IComponent component)
Removes a component from the T:System.ComponentModel.IContainer.
virtual void Dispose(bool disposing)
Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally release...
Controls the system garbage collector, a service that automatically reclaims unused memory.
virtual object GetService(Type service)
Returns an object that represents a service provided by the T:System.ComponentModel....
bool??? DesignMode
Gets a value that indicates whether the T:System.ComponentModel.Component is currently in design mode...
DesignerSerializationVisibility
Specifies the visibility a property has to the design-time serializer.
Encapsulates zero or more components.
ClassInterfaceType
Identifies the type of class interface that is generated for a class.
IContainer Container
Gets the T:System.ComponentModel.IContainer associated with the T:System.ComponentModel....
Provides functionality required by sites.
bool DesignMode
Determines whether the component is in design mode when implemented by a class.
Enables access to objects across application domain boundaries in applications that support remoting.