Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​ComponentModel.​Component

Assembly: System.ComponentModel.Primitives

Inheritance: object → MarshalByRefObject → Component

Implemented Interfaces

Provides the base implementation for the <see cref="T:System.ComponentModel.IComponent" /> interface and enables object sharing between applications.

Properties

protected bool
CanRaiseEvents
Gets a value indicating whether the component can raise an event.
public IContainer
Container
Gets the <see cref="T:System.ComponentModel.IContainer" /> that contains the <see cref="T:System.ComponentModel.Component" /> .
protected bool
DesignMode
Gets a value that indicates whether the <see cref="T:System.ComponentModel.Component" /> is currently in design mode.
protected EventHandlerList
Events
Gets the list of event handlers that are attached to this <see cref="T:System.ComponentModel.Component" /> .
public ISite
Site
Gets or sets the <see cref="T:System.ComponentModel.ISite" /> of the <see cref="T:System.ComponentModel.Component" /> .

Methods

public void
Dispose​()
Releases all resources used by the <see cref="T:System.ComponentModel.Component" /> .
protected void
Dispose​(bool disposing)
Releases the unmanaged resources used by the <see cref="T:System.ComponentModel.Component" /> and optionally releases the managed resources.
disposing <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.
protected void
Finalize​()
Releases unmanaged resources and performs other cleanup operations before the <see cref="T:System.ComponentModel.Component" /> is reclaimed by garbage collection.
protected object
GetService​(Type service)
Returns an object that represents a service provided by the <see cref="T:System.ComponentModel.Component" /> or by its <see cref="T:System.ComponentModel.Container" /> .
Returns An <see cref="T:System.Object" /> that represents a service provided by the <see cref="T:System.ComponentModel.Component" /> , or <see langword="null" /> if the <see cref="T:System.ComponentModel.Component" /> does not provide the specified service.
service A service provided by the <see cref="T:System.ComponentModel.Component" /> .
public string
ToString​()
Returns a <see cref="T:System.String" /> containing the name of the <see cref="T:System.ComponentModel.Component" /> , if any. This method should not be overridden.
Returns A <see cref="T:System.String" /> containing the name of the <see cref="T:System.ComponentModel.Component" /> , if any, or <see langword="null" /> if the <see cref="T:System.ComponentModel.Component" /> is unnamed.
public object
GetLifetimeService​()
Inherited from MarshalByRefObject
public object
InitializeLifetimeService​()
Inherited from MarshalByRefObject
protected MarshalByRefObject
MemberwiseClone​(bool cloneIdentity)
Inherited from MarshalByRefObject
public bool
Equals​(object obj)
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object