IWMSAdminRealm Object (C#)
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.
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSPlugin Plugin;
IWMSAdminRealm AdminRealm;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the plug-in to be configured.
Plugin = Server.Authenticators[
"WMS Digest Authentication"];
// Retrieve the custom interface of the plug-in.
AdminRealm =
(IWMSAdminRealm)Plugin.CustomInterface;
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}