Windows Media Services SDK banner art
PreviousNext

VirtualRoots.Add Method

Adds a VirtualRoot object to the VirtualRoots collection object.

Syntax

NSUnicastMgr.VirtualRoots.Add( AliasName, VirtualDirectory, [MaxClients], [MaxBandwidth] )

Parameters

AliasName

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

VirtualDirectory

A String value 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.AliasName, VirtualRoot.MaxClients, VirtualRoot.MaxBandWidth.

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.