IWMSPlugins.Refresh (Visual Basic .NET)
Previous | Next |
IWMSPlugins.Refresh (Visual Basic .NET)
The Refresh method updates the list of IWMSPlugin objects in the IWMSPlugins collection to reflect the plug-ins that are registered for use by the server.
Syntax
IWMSPlugins .Refresh
Parameters
This method takes no parameters.
Return Values
This method does not return a value.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub UpdateList() ' Declare variables. Dim Server As WMSServer Dim Plugins As IWMSPlugins Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve the IWMSPlugins object. Plugins = Server.EventHandlers ' Refresh the collection of plug-ins in case ' of state changes. Plugins.Refresh() 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
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
Previous | Next |