Export (0) Print
Expand All

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

The IExtensibilityManager type exposes the following members.

  NameDescription
Public methodGetExtensionsRetrieves the list of currently registered extensions for the specified extension type.
Public methodRegisterExtensionRegisters an extension that is scoped to the current connection.
Top

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


Community Additions

ADD
Show:
© 2014 Microsoft