Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
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 IWMSFileDescription object 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 Code
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
| Previous | Next |