VirtualRoots.Add Method

Adds a VirtualRoot object to the VirtualRootscollection object.

Syntax

NSUnicastMgr.VirtualRoots.Add( AliasName, VirtualDirectory, [maxClients], [maxBandwidth] )

Parameters

AliasName

A unique String specifying the name of the virtual root being added.

VirtualDirectory

A String specifying the directory for the virtual root.

maxClients

An optional Long value specifying the maximum number of clients allowed access to this virtual root.

maxBandwidth

An optional Long value specifying the maximum bandwidth allowed for this virtual root.

Return Values

Returns an ActiveX HRESULT error code.

Remarks

The Add method creates a virtual root, but does not create the directory for the root.

Example

The following script creates two virtual roots. The second root is contained within the first. However, their respective directories are not nested.

NSUnicastMgr.VirtualRoots.Add "LiveOpera", "d:\liveopera"
' create nested root with non-nested directories
NSUnicastMgr.VirtualRoots.Add "LiveOpera/Britten", "d:\britten"
' create root for stream on another server
NSUnicastMgr.VirtualRoots.Add "Distribution", "msbd://server/station"

See Also

VirtualRoot, VirtualRoots, VirtualRoot.AliasName

© 1996-1998 Microsoft Corporation. All rights reserved.