Click or drag to resize

RemoteBACnetDeviceRemoveObject(BACnetObject) Method

Removes the specified remote object from the corresponding remote objects collection. This function also validates the object parameters passed. Success will be returned if the object is removed successfully, otherwise an exception is thrown that tells what kind of error found.

Namespace: Crestron.SimplSharpPro
Assembly: SimplSharpPro (in SimplSharpPro.dll) Version: 2.21.121
Syntax
C#
public override bool RemoveObject(
	BACnetObject paramObject
)

Parameters

paramObject  BACnetObject
Object to be removed from the Remote Device Object collection.

Return Value

Boolean
Returns 'true' if the object is removed successfully, otherwise an exception is thrown.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe BACnet remote device object id or any other parameter is not valid.
BACnetExceptionUnable to add the BACnet remote device object due to no response or error in the response packet received from the BACnet stack.
BACnetDeviceOrObjectDoesNotExistExceptionThe BACnet remote device object with the object id is not present in the collection, so ignored the remove request.
Remarks
This method will block pending a response. It is recommended to not invoke this method from within a event handler. Please launch a timer/thread to remove a remote object. Also – this method not to be called from the control system constructor.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also