Relay Class |
public class Relay : PortDevice
The Relay type exposes the following members.
| Name | Description | |
|---|---|---|
| SlotType |
Function to get the slot type
(Overrides CrestronDevice.SlotType) | |
| State | Get or Set the state of the relay |
| Name | Description | |
|---|---|---|
| Close | Function to close the relay | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Open | Function to open the relay | |
| UnRegister |
Function to unregister the Relay, if registered.
(Overrides PortDevice.UnRegister) |
| Name | Description | |
|---|---|---|
| StateChange | State change event to notify when the relay's state has changed. |