IWMSPlugin.CustomInterface (Visual Basic .NET)
Previous | Next |
IWMSPlugin.CustomInterface (Visual Basic .NET)
The CustomInterface property retrieves the administration object for the plug-in.
Syntax
Object = Plugin.CustomInterface
Property Value
An Object for the administration user interface.
Remarks
When you call the CustomInterface property, the server will load the plug-in if it is not already loaded. Some plug-ins do not have user objects.
This property is read-only.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetCustomInterface() ' Declare variables. Dim Server As WMSServer Dim Plugins As IWMSPlugins Dim Plugin As IWMSPlugin Dim CustomInterface As Object Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve the IWMSPlugins object. Plugins = Server.Authenticators ' Retrieve information about each plug-in. For Each Plugin In Plugins ' Retrieve a custom interface object, if one exists. CustomInterface = Plugin.CustomInterface Next 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 |