IWMSFileDescriptions Object (Visual Basic .NET)

The IWMSFileDescriptions object contains a collection of IWMSFileDescription objects.

The IWMSFileDescriptions object exposes the following properties and methods.

Property

Description

Count

Retrieves the number of IWMSFileDescription objects contained in the IWMSFileDescriptions collection.

Item

Retrieves an IWMSFileDescriptionIWMSFileDescription Object (Visual Basic .NET) from the IWMSFileDescriptions collection.

length

Retrieves the number of IWMSFileDescription objects contained in the IWMSFileDescriptions collection. This method is provided for JScript compatibility.

Method

Description

CreateDataSourceDirectory

Creates a new directory that can be used to store content.

Delete

Removes an IWMSFileDescription object from the IWMSFileDescriptions collection.

Example

The following example illustrates how to retrieve an IWMSFileDescriptions object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim FileDescriptions As IWMSFileDescriptions
    Dim strPath As String

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

    ' Retrieve the IWMSFileDescriptions object.
    strPath = "file://c:\wmpub\wmroot"
    FileDescriptions = Server.FileDescriptions(strPath, WMS_FILE_TYPE.WMS_FILE_UNSPECIFIED)

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)