Stream.GetState Method

Gets the state of a Stream object.

Syntax

NSChannelMgr.Streams(index).GetState

Return Values

Returns the stream state.

Remarks

Stream states are defined in an enumeration of type MCMSTREAMSTATE. Valid values are:

Value Mnemonic Description
1 MCM_SS_CLOSED Closed
2 MCM_SS_OPEN Open
3 MCM_SS_STREAMING Streaming
4 MCM_SS_RESTARTING Restarting

Example

Dim Streams
Set Streams = NSChannelMgr.Streams
Select Case Stream(0).GetState
  Case 1 MsgBox Stream(0).Title & " is closed"
  Case 2 MsgBox Stream(0).Title & " is open"
  Case 3 MsgBox Stream(0).Title & " is streaming"
  Case 4 MsgBox Stream(0).Title & " is restarting"
End Select

See Also

Streams collection, Stream objects, Stream.GetChannel, Stream.GetID

© 1996-1998 Microsoft Corporation. All rights reserved.