Windows Media Services SDK banner art
PreviousNext

Channel.Close Method

Closes a station.

Syntax

NSChannelMgr.Channels( ChannelName ).Close

Return Values

Returns an ActiveX HRESULT error code.

Remarks

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

Example

Dim Stations
Set Stations = NSChannelMgr.Channels
Stations.Open "Station 1", 1  ' Give read access
Stations.Open "Station 2", 2  ' Give write access
Stations.Open "Station 3", 7  ' Give full access
Stations(1).Close     ' Close Station 2
' Now set the collection again
Set Stations = NSChannelMgr.Channels

See Also

Channel.GetID, Channel.GetActiveStream, Channel.SetActiveStream, Channel.InitializeFromNSC, Channel.WriteNSC, Channel.DistributeFrom

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.