Windows Media Services SDK banner art
PreviousNext

VirtualRoots.Remove Method

Removes the VirtualRoot object specified by the AliasName parameter from the VirtualRoots collection object.

Syntax

NSUnicastMgr.VirtualRoots.Remove( Index )

Parameters

Index

The Index value is defined as a variant type. It can be expressed in different ways, as shown in the following table.

Syntax Type Definition
Item( 0 ) Integer Position of the element in the collection.
Item( “0” ) String Position of the element in the collection.
Item( 0.0 ) Real Position of the element in the collection.
Item( “Alias” ) String The alias name of the virtual root.

String values are assumed to be the alias name or directory path unless the search for a corresponding virtual root fails. Then the system attempts to convert the String value to a number, and search for the virtual root by its position in the collection.

Return Values

Returns an ActiveX HRESULT error code.

Example

' Remove virtual root with alias "Unnecessary Flotsam"
NSUnicastMgr.VirtualRoots.Remove "Unnecessary Flotsam"
PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.