BVMS Server- and Client-SDK
BVMS Server- and Client-SDK
BVMS Server- and Client-SDK
Bosch.Vms.SDK
IRelayManager Interface
IRelayManager Methods
Close Method
GetRelayById Method
GetRelayByName Method
GetRelayInfoList Method
GetState Method
Open Method

# IRelayManagerGetState Method |

Retrieves the state of a relay device.
Namespace: Bosch.Vms.SDK
Assembly: Bosch.Vms.SDK (in Bosch.Vms.SDK.dll) Version: 1.9.0.0
Syntax
C#
Copy

    RelayState GetState(
    	Relay relay
    )

#### Parameters

relay Relay

#### Return Value

RelayState
Returns the RelayState.
Exceptions

Exception | Condition
--- | ---
SdkException | Thrown if relay doesn't exist in the configuration or is not permitted to caller.

Remarks
Retrieves the state of a relay device after it has been processed within BVMS. The BVMS system applies several processing steps before a change of a state may be observed by an event listener (see IEventManager). This method yields the state of the device that is in sync with what has been observed by OnEvent(EventData).
See Also

#### Reference

IRelayManager Interface
Bosch.Vms.SDK Namespace

Copyright © Bosch Sicherheitssysteme GmbH