IExtensibilityManager Interface

IIS 7.0
 

Provides a mechanism for modules to register their functionality with IIS Manager.

Namespace:   Microsoft.Web.Management.Client
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

public interface IExtensibilityManager

NameDescription
System_CAPS_pubmethodGetExtensions(Type)

Retrieves the list of currently registered extensions for the specified extension type.

System_CAPS_pubmethodRegisterExtension(Type, Object)

Registers an extension that is scoped to the current connection.

Extensions are defined by their type (base class or interface that they implement). Extensions are scoped to a single connection.

IExtensibilityManager extensMgr = 
    (IExtensibilityManager)GetService(
    typeof(IExtensibilityManager));
System.Diagnostics.Debug.Assert(extensMgr != null);

extensMgr.RegisterExtension(typeof(HierarchyProvider), 
    new DemoHierProvidr(serviceProvider));

ICollection extenCol = 
    extensMgr.GetExtensions(typeof(HierarchyProvider));
Trace.WriteLine(
    "extensMgr collection cnt = " + extenCol.Count.ToString());
foreach (HierarchyProvider col in extenCol) 
{
    Trace.WriteLine(col.ToString());
}
Return to top
Show: