C# Класс Sage.Modules.ModuleResult

Represents the result returned by a module after processing a request.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AppendDataElement ( XmlNode dataElement = null ) : XmlElement

Creates a mod:data element in the current module.

If this method is invoked with no arguments, a mod:data element will be created (if it doesn't exist in the current module) and the final mod:data element will be returned. If an element whose name is mod:data is supplied, if will either be appended to the current module (if the module doesn't have a mod:data element already) or it will replace the existing mod:data element if one exists already. The element that will be returned will be the appended copy of the specified dataElement.

AppendDataNode ( XmlNode dataNode = null ) : XmlNode

Creates a mod:data node in the current module.

If this method is invoked with no arguments, a mod:data element will be created (if it doesn't exist in the current module) and the final mod:data element will be returned. If an element whose name is mod:data is supplied, if will either be appended to the current module (if the module doesn't have a mod:data element already) or it will replace the existing mod:data element if one exists already. The node that will be returned will be the appended copy of the specified dataNode.

ModuleResult ( ModuleResultStatus status ) : System

Initializes a new instance of the ModuleResult class.

ModuleResult ( XmlElement resultElement, ModuleResultStatus status = ModuleResultStatus.Ok ) : System

Initializes a new instance of the ModuleResult class, using the specified status and resultElement.

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

Метод Описание
AppendOrPrependDataNode ( XmlNode dataNode, bool prepend ) : XmlNode

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

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

Creates a mod:data element in the current module.
If this method is invoked with no arguments, a mod:data element will be created (if it doesn't exist in the current module) and the final mod:data element will be returned. If an element whose name is mod:data is supplied, if will either be appended to the current module (if the module doesn't have a mod:data element already) or it will replace the existing mod:data element if one exists already. The element that will be returned will be the appended copy of the specified dataElement.
public AppendDataElement ( XmlNode dataElement = null ) : XmlElement
dataElement System.Xml.XmlNode Optional data element to add to the current module's element.
Результат System.Xml.XmlElement

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

Creates a mod:data node in the current module.
If this method is invoked with no arguments, a mod:data element will be created (if it doesn't exist in the current module) and the final mod:data element will be returned. If an element whose name is mod:data is supplied, if will either be appended to the current module (if the module doesn't have a mod:data element already) or it will replace the existing mod:data element if one exists already. The node that will be returned will be the appended copy of the specified dataNode.
public AppendDataNode ( XmlNode dataNode = null ) : XmlNode
dataNode System.Xml.XmlNode Optional data node to add to the current module's element.
Результат System.Xml.XmlNode

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

Initializes a new instance of the ModuleResult class.
public ModuleResult ( ModuleResultStatus status ) : System
status ModuleResultStatus The status.
Результат System

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

Initializes a new instance of the ModuleResult class, using the specified status and resultElement.
public ModuleResult ( XmlElement resultElement, ModuleResultStatus status = ModuleResultStatus.Ok ) : System
resultElement System.Xml.XmlElement The content of this result.
status ModuleResultStatus The status of this result.
Результат System