Stream.Close Method

Closes a stream.

Syntax

NSChannelMgr.Streams(index).Close

Return Values

Returns an ActiveX HRESULT error code.

Remarks

If you remove an item from the Streams collection object by using the Close method, you must use the Set statement again to refresh the object.

Example

Dim Streams
Set Streams = NSChannelMgr.Streams
Stream1 = Streams(0)
' close first stream on server
Stream1.Close
' reinitialize streams collection
Set Streams = NSChannelMgr.Streams

See Also

Streams collection, Stream objects, Stream.Stop

© 1996-1998 Microsoft Corporation. All rights reserved.