IWMSRootDirectories Object (Visual Basic .NET)

The IWMSRootDirectories object contains a collection of root directory paths for the enabled data source plug-ins.

The IWMSRootDirectories object exposes the following properties.

Method

Description

Count

Retrieves the number of root directory paths in the IWMSRootDirectories collection.

Item

Retrieves a specific root directory path from the IWMSRootDirectories collection.

length

Retrieves the number of root directory paths in the IWMSRootDirectories collection. This method is provided for JScript compatibility.

Example

The following example illustrates how to retrieve an IWMSRootDirectories object.

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim RootDirectories As IWMSRootDirectories

Try
    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the IWMSRootDirectories object.
    RootDirectories = Server.RootDirectories

Catch excCom As COMException
    ' TODO: Handle COM exceptions.
Catch exc As Exception
    ' TODO: Handle errors.
Finally
    ' TODO: Clean-up code goes here.
End Try

End Sub

See Also

Concepts

Server Object Model (Visual Basic .NET)