C# 클래스 Sage.Modules.ModuleResult

Represents the result returned by a module after processing a request.
파일 보기 프로젝트 열기: igorfrance/sage 1 사용 예제들

공개 메소드들

메소드 설명
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