Windows Media Services SDK banner art
PreviousNext

Channel.WriteNSC Method

Writes station information to an .nsc file.

Syntax

NSChannelMgr.Channels(ChannelName).WriteNSC( FileName, Overwrite )

Parameters

FileName

A String value specifying the file name, including the path, or UNC. The file name must have an .nsc extension.

Overwrite

A Boolean flag indicating whether the file can replace a file of the same name. True indicates that the file can be replaced.

Return Values

Returns an ActiveX HRESULT error code.

Example

' Write (orreplace) an .nsc station information file
' called OHLive.nsc.
NSChannelMgr.Channel.WriteNSC( "c:\public\OHLive.nsc", True )
NSChannelMgr.Channel.WriteNSC( "\\MyServer\public\OHlive.nsc", True )

See Also

Channel.GetID, Channel.GetActiveStreamChannel.InitializeFromNSC, Channel.Close, Channel.DistributeFrom

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.