mscorlib(4.0.0.0) API with additions
|
Provides the base implementation for the T:System.ComponentModel.IComponent interface and enables object sharing between applications. More...
Public Member Functions | |
void | Dispose () |
Releases all resources used by the T:System.ComponentModel.Component. More... | |
override string | ToString () |
Returns a T:System.String containing the name of the T:System.ComponentModel.Component, if any. This method should not be overridden. More... | |
![]() | |
object | GetLifetimeService () |
Retrieves the current lifetime service object that controls the lifetime policy for this instance. More... | |
virtual object | InitializeLifetimeService () |
Obtains a lifetime service object to control the lifetime policy for this instance. More... | |
virtual ObjRef | CreateObjRef (Type requestedType) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally releases the managed resources. More... | |
virtual object | GetService (Type service) |
Returns an object that represents a service provided by the T:System.ComponentModel.Component or by its T:System.ComponentModel.Container. More... | |
![]() | |
MarshalByRefObject | MemberwiseClone (bool cloneIdentity) |
Creates a shallow copy of the current T:System.MarshalByRefObject object. More... | |
Protected Attributes | |
virtual bool | CanRaiseEvents => true |
Gets a value indicating whether the component can raise an event. More... | |
Properties | |
EventHandlerList | Events [get] |
Gets the list of event handlers that are attached to this T:System.ComponentModel.Component. More... | |
virtual ISite | Site [get, set] |
Gets or sets the T:System.ComponentModel.ISite of the T:System.ComponentModel.Component. More... | |
IContainer? | Container [get] |
Gets the T:System.ComponentModel.IContainer that contains the T:System.ComponentModel.Component. More... | |
bool??? | DesignMode [get] |
Gets a value that indicates whether the T:System.ComponentModel.Component is currently in design mode. More... | |
EventHandler | Disposed |
Occurs when the component is disposed by a call to the M:System.ComponentModel.Component.Dispose method. More... | |
![]() | |
ISite | Site [get, set] |
Gets or sets the T:System.ComponentModel.ISite associated with the T:System.ComponentModel.IComponent. More... | |
Additional Inherited Members | |
![]() | |
EventHandler | Disposed |
Represents the method that handles the E:System.ComponentModel.IComponent.Disposed event of a component. More... | |
Provides the base implementation for the T:System.ComponentModel.IComponent interface and enables object sharing between applications.
Definition at line 9 of file Component.cs.
void System.ComponentModel.Component.Dispose | ( | ) |
Releases all resources used by the T:System.ComponentModel.Component.
Implements System.IDisposable.
Definition at line 101 of file Component.cs.
|
protectedvirtual |
Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally releases the managed resources.
disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Reimplemented in System.Diagnostics.Process, System.IO.Ports.SerialPort, System.Diagnostics.EventLog, System.IO.FileSystemWatcher, System.Diagnostics.PerformanceCounter, System.Timers.Timer, and System.Net.NetworkInformation.Ping.
Definition at line 110 of file Component.cs.
|
protectedvirtual |
Returns an object that represents a service provided by the T:System.ComponentModel.Component or by its T:System.ComponentModel.Container.
service | A service provided by the T:System.ComponentModel.Component. |
null
if the T:System.ComponentModel.Component does not provide the specified service.Definition at line 131 of file Component.cs.
override string System.ComponentModel.Component.ToString | ( | ) |
Returns a T:System.String containing the name of the T:System.ComponentModel.Component, if any. This method should not be overridden.
null
if the T:System.ComponentModel.Component is unnamed.Definition at line 138 of file Component.cs.
|
protected |
Gets a value indicating whether the component can raise an event.
true
if the component can raise events; otherwise, false
. The default is true
.Definition at line 20 of file Component.cs.
|
get |
Gets the T:System.ComponentModel.IContainer that contains the T:System.ComponentModel.Component.
null
if the T:System.ComponentModel.Component is not encapsulated in an T:System.ComponentModel.IContainer.Definition at line 59 of file Component.cs.
|
getprotected |
Gets a value that indicates whether the T:System.ComponentModel.Component is currently in design mode.
true
if the T:System.ComponentModel.Component is in design mode; otherwise, false
.Definition at line 72 of file Component.cs.
|
addremove |
Occurs when the component is disposed by a call to the M:System.ComponentModel.Component.Dispose method.
Definition at line 83 of file Component.cs.
|
getprotected |
Gets the list of event handlers that are attached to this T:System.ComponentModel.Component.
Definition at line 27 of file Component.cs.
|
getset |
Gets or sets the T:System.ComponentModel.ISite of the T:System.ComponentModel.Component.
null
if the T:System.ComponentModel.Component is not encapsulated in an T:System.ComponentModel.IContainer, the T:System.ComponentModel.Component does not have an T:System.ComponentModel.ISite associated with it, or the T:System.ComponentModel.Component is removed from its T:System.ComponentModel.IContainer.Definition at line 43 of file Component.cs.