DeleteObjects Method

The DeleteObjects method deletes all objects in the class Channel object's collections that are marked with DeleteOnRefresh = True.

VBScript Syntax

IChannel.DeleteObjects

Parameters

None

Return Value

None

Remarks

This method strictly removes objects marked for deletion in this object's collections. To remove all objects in the hierarchy marked for deletion, invoke the Refresh method.

Example

VBScript and Windows Scripting Host

Set IDispChannel = CreateObject("Push.Channel")
Set IDispC2 = IDispChannel.AddSubchannel
IDispC2.DeleteOnRefresh = 1
IDispChannel.DeleteObjects  '  oC2 deleted from subchannels 'collection

© 1997-1998 Microsoft Corporation. All rights reserved.