IWMSPlugin.MonikerName (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSPlugin.MonikerName (Visual Basic .NET)
The MonikerName property retrieves the moniker display name for a plug-in.
Syntax
string = Plugin.MonikerName;
Property Value
A String containing the moniker name
If this property fails, it throws an exception.
| Number | Description |
| 0xC00D003D | The namespace containing the moniker name could not be opened. |
Remarks
A moniker is a persistent COM component that encapsulates both the ability to locate an object or data and to retrieve that object or data into memory. The display name can be used to create the object, in this case a plug-in.
Example Code
The following example retrieves the moniker name for the WMS Anonymous User Plug-in included with Windows Media Services. The moniker equals "WMSServer:server_name\Authentication\Object Store\WMS Anonymous User Authentication".
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub GetMonikerName()
' Declare Variables
Dim Server As WMSServer
Dim Plugin As IWMSPlugin
Dim MonikerName As String
Try
' Create the WMSServer object.
Server = CreateObject("WMSServer.Server")
' Retrieve the WMS Anonymous User Authentication plug-in.
Plugin = Server.Authenticators.Item("WMS Anonymous User Authentication")
' Retrieve the moniker name.
MonikerName = Plugin.MonikerName
Catch excCom As COMException
' TODO: Handle COM exceptions.
Catch e 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 |