Click or drag to resize

Relay Class

Relay Device class derived off CrestronDevice
Inheritance Hierarchy
SystemObject
  DeviceBasis
    CrestronDevice
      PortDevice
        Crestron.SimplSharpProRelay

Namespace: Crestron.SimplSharpPro
Assembly: SimplSharpPro (in SimplSharpPro.dll) Version: 2.21.121
Syntax
C#
public class Relay : PortDevice

The Relay type exposes the following members.

Properties
 NameDescription
Protected propertySlotType Function to get the slot type
(Overrides CrestronDevice.SlotType)
Public propertyState Get or Set the state of the relay
Top
Methods
 NameDescription
Public methodClose Function to close the relay
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOpen Function to open the relay
Public methodUnRegister Function to unregister the Relay, if registered.
(Overrides PortDevice.UnRegister)
Top
Events
 NameDescription
Public eventStateChange State change event to notify when the relay's state has changed.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also