Windows Media Services SDK banner art
PreviousNext

Streams Property

Returns a Streams collection object.

Syntax

NSChannelMgr.Streams

Example

NSChannelMgr.Connect "LocalHost"
Dim MyStreams
Set MyStreams = NSChannelMgr.Streams
MsgBox ("There are " & MyStreams.Count & " stream objects.")
MyStreams(0).Close  ' Remove a stream
Set MyStreams = NSChannelMgr.Streams ' Update collection

Remarks

If you remove a Stream object from the collection, you must retrieve a new collection. In Visual Basic, this is done by reissuing the Set statement to update the collection object.

See Also

Windows Media Station Control Properties

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.