Share via


IExtensibilityManager Interface

Definition

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

public interface class IExtensibilityManager
public interface IExtensibilityManager
type IExtensibilityManager = interface
Public Interface IExtensibilityManager

Examples

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());
}

Remarks

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

Methods

GetExtensions(Type)

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

RegisterExtension(Type, Object)

Registers an extension that is scoped to the current connection.

Applies to