Channel.InitializeFromNSC Method

 Initializes the station from a .nsc file.

Syntax

NSChannelMgr.Channels(ChannelName).InitializeFromNSC( NSCFileName, Filter )

Parameters

NSCFileName

A String value specifying the name of the .nsc file containing information on the station being initialized.

Filter

The filter value indicates specific types of information to exclude. Filter values can be added together to exclude multiple types of information.

Return Values

Returns an ActiveX HRESULT error code.

Remarks

The filter is an enumeration of MCMDELIVERYMODE type, and can have the following values:

Value Mnemonic Description
1 MCM_DM_SESSION Ignore multicast address.
2 MCM_DM_SESSIONLESS_3PH Ignore multicast adapter address.
4 MCM_DM_SESSIONLESS_EC Ignore auto-archive directory.
8 MCM_DM_DISTRIBUTION Ignore station name.

Example

' Set a station to the properties defined in the NSC file "LASCALA" _
  but don't archive it in the same place
NSChannelMgr.Channel.DistributeFrom( "OHLive", MCM_DM_SESSIONLESS_EC )

See Also

GetID, GetActiveStream, SetActiveStream, InitializeFromNSC, WriteNSC, Close, DistributeFrom

© 1996-1998 Microsoft Corporation. All rights reserved.