Click or drag to resize

HostedBACnetDeviceRemoveAllObjects(eBACnetObjectType, Int32) Method

Removes all the host objects of the specified type from the corresponding host objects collections. Success will be returned if all the objects of the specified type are removed successfully, otherwise failure is returned and the corresponding error is logged.

Namespace: Crestron.SimplSharpPro
Assembly: SimplSharpPro (in SimplSharpPro.dll) Version: 2.21.121
Syntax
C#
public override bool RemoveAllObjects(
	eBACnetObjectType paramObjectType,
	int paramResponseTimeout
)

Parameters

paramObjectType  eBACnetObjectType
Type of the objects that are to be removed.
paramResponseTimeout  Int32
Maximum wait time in ms required for an object to be remove from the BACnet stack. Set the timeout value to Infinite to wait indefinitely. The minimum value to be entered is 10000.

Return Value

Boolean
Returns 'true' if all the objects are removed successfully, otherwise returns 'false' and logs an error.
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 all host objects. Also – this method not be called from the control system constructor.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also