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.
The IWMSAdminRealm object is exposed by the WMS Digest Authentication plug-in. The object can be used to specify a realm name for your site, to distinguish it from other sites. The IWMSAdminRealm object exposes the following property.
Property |
Description |
---|---|
Realm |
Specifies and retrieves the name of the realm that is presented to a client when prompted for a user name and password. The realm string is used to distinguish one site from another. |
Example
The following example illustrates how to retrieve an IWMSAdminRealm object.
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub RetrieveObj()
' Declare variables.
Dim Server As WMSServer
Dim Plugin As IWMSPlugin
Dim AdminRealm As IWMSAdminRealm
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the plug-in to be configured.
Plugin = Server.Authenticators.Item("WMS Digest Authentication")
' Retrieve the custom interface of the plug-in.
AdminRealm = Plugin.CustomInterface
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