C# Класс PackageActionsContrib.AddHttpHandler

This Package action will Add a new HTTP Handler to the web.config file
This package action is part of the PackageActionsContrib Project
Наследование: IPackageAction
Показать файл Открыть проект

Открытые методы

Метод Описание
Alias ( ) : string

This Alias must be unique and is used as an identifier that must match the alias in the package action XML

Execute ( string packageName, XmlNode xmlData ) : bool

Append the xmlData node to the web.config file

SampleXml ( ) : XmlNode

Returns a Sample XML Node In this case the Sample HTTP Module TimingModule

Undo ( string packageName, System xmlData ) : bool

Removes the xmlData node from the web.config file

Приватные методы

Метод Описание
getAttribute ( XmlNode xmlData, string attribute, string &value ) : bool

Get a named attribute from xmlData root node

getAttributeDefault ( XmlNode xmlData, string attribute, string defaultValue ) : string

Get an optional named attribute from xmlData root node when attribute is unavailable, return the default value

getUser ( ) : umbraco.BusinessLogic.User

Get the current user, or when unavailable admin user

Описание методов

Alias() публичный Метод

This Alias must be unique and is used as an identifier that must match the alias in the package action XML
public Alias ( ) : string
Результат string

Execute() публичный Метод

Append the xmlData node to the web.config file
public Execute ( string packageName, XmlNode xmlData ) : bool
packageName string Name of the package that we install
xmlData System.Xml.XmlNode The data that must be appended to the web.config file
Результат bool

SampleXml() публичный Метод

Returns a Sample XML Node In this case the Sample HTTP Module TimingModule
public SampleXml ( ) : XmlNode
Результат System.Xml.XmlNode

Undo() публичный Метод

Removes the xmlData node from the web.config file
public Undo ( string packageName, System xmlData ) : bool
packageName string Name of the package that we install
xmlData System The data that must be appended to the web.config file
Результат bool