C# Класс CyrusBuilt.MonoPi.Components.ComponentBase

Base class for hardware abstraction components.
Наследование: IComponent
Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void

Releases all resources used by the CyrusBuilt.MonoPi.Components.ComponentBase object.

Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.ComponentBase. The Dispose method leaves the CyrusBuilt.MonoPi.Components.ComponentBase in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.ComponentBase so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.ComponentBase was occupying.

HasProperty ( String key ) : System.Boolean

Determines whether this instance has property the specified key.

SetProperty ( String key, String value ) : void

Sets the value of the specified property. If the property does not already exist in the property collection, it will be added.

ToString ( ) : String

Returns a System.String that represents the current CyrusBuilt.MonoPi.Components.ComponentBase.

Защищенные методы

Метод Описание
ComponentBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.ComponentBase class. This is the default contructor.

ComponentBase ( String>.Dictionary props ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.ComponentBase class with a properties dictionary.

Dispose ( System.Boolean disposing ) : void

Releaseses all resources used this object.

Описание методов

ComponentBase() защищенный Метод

Initializes a new instance of the CyrusBuilt.MonoPi.Components.ComponentBase class. This is the default contructor.
protected ComponentBase ( ) : System
Результат System

ComponentBase() защищенный Метод

Initializes a new instance of the CyrusBuilt.MonoPi.Components.ComponentBase class with a properties dictionary.
protected ComponentBase ( String>.Dictionary props ) : System
props String>.Dictionary /// Component properties. ///
Результат System

Dispose() публичный Метод

Releases all resources used by the CyrusBuilt.MonoPi.Components.ComponentBase object.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.ComponentBase. The Dispose method leaves the CyrusBuilt.MonoPi.Components.ComponentBase in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.ComponentBase so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.ComponentBase was occupying.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releaseses all resources used this object.
protected Dispose ( System.Boolean disposing ) : void
disposing System.Boolean /// Set true if disposing managed resources in addition to unmanaged. ///
Результат void

HasProperty() публичный Метод

Determines whether this instance has property the specified key.
public HasProperty ( String key ) : System.Boolean
key String /// The key name of the property to check for. ///
Результат System.Boolean

SetProperty() публичный Метод

Sets the value of the specified property. If the property does not already exist in the property collection, it will be added.
public SetProperty ( String key, String value ) : void
key String /// The property name (key). ///
value String /// The value to assign to the property. ///
Результат void

ToString() публичный Метод

Returns a System.String that represents the current CyrusBuilt.MonoPi.Components.ComponentBase.
public ToString ( ) : String
Результат String