Nevron .NET Vision
Nevron.UI.WebForm.Controls Namespace / NClientServerTechnology Class / RegisterImageHttpHandlerIIS7 Method


In This Topic
    RegisterImageHttpHandlerIIS7 Method
    In This Topic
    Registers an HTTP handler is the web.config file under the configuration section system.webServer/handlers.
    Syntax
    'Declaration
     
    
    Protected Function RegisterImageHttpHandlerIIS7( _
       ByVal action As System.Web.Configuration.HttpHandlerAction _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NClientServerTechnology
    Dim action As System.Web.Configuration.HttpHandlerAction
    Dim value As System.Boolean
     
    value = instance.RegisterImageHttpHandlerIIS7(action)
    protected System.bool RegisterImageHttpHandlerIIS7( 
       System.Web.Configuration.HttpHandlerAction action
    )

    Parameters

    action

    Return Value

    True if the HTTP handler was registered successfully, false if the method fails to obtain an IWebApplication object from the site of the page or fails to obtain a Configuration object from the web application.
    Remarks
    Does not check if the handler has been already registered. Please use the IsHttpHandlerRegisteredIIS7 method of the NClientServerTechnology class to determine if the HTTP handler exists in the web.config file.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also