Class Action
Assembly: Xareus.Scenarios.Relations.dll
Syntax
[Serializable]
public class Action
Constructors
Action()
Declaration
Action(Realization)
Create an action for logging using a realization.
Declaration
public Action(Realization real)
Parameters
Properties
id
Declaration
public string id { get; set; }
Property Value
object
Declaration
public List<string> @object { get; set; }
Property Value
relation
Declaration
public string relation { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static Action Deserialize(string xml)
Parameters
Type |
Name |
Description |
string |
xml |
|
Returns
Deserialize(string, out Action)
Declaration
public static bool Deserialize(string xml, out Action obj)
Parameters
Returns
Deserialize(string, out Action, out Exception)
Deserializes workflow markup into an Action object
Declaration
public static bool Deserialize(string xml, out Action obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
xml |
string workflow markup to deserialize
|
Action |
obj |
Output Action object
|
Exception |
exception |
output Exception value if deserialize failed
|
Returns
Type |
Description |
bool |
true if this XmlSerializer can deserialize the object; otherwise, false
|
LoadFromFile(string)
Declaration
public static Action LoadFromFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
LoadFromFile(string, out Action)
Declaration
public static bool LoadFromFile(string fileName, out Action obj)
Parameters
Returns
LoadFromFile(string, out Action, out Exception)
Deserializes XML markup from file into an Action object
Declaration
public static bool LoadFromFile(string fileName, out Action obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
string xml file to load and deserialize
|
Action |
obj |
Output Action object
|
Exception |
exception |
output Exception value if deserialize failed
|
Returns
Type |
Description |
bool |
true if this XmlSerializer can deserialize the object; otherwise, false
|
SaveToFile(string)
Declaration
public virtual void SaveToFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
SaveToFile(string, out Exception)
Serializes current Action object into file
Declaration
public virtual bool SaveToFile(string fileName, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
full path of output XML file
|
Exception |
exception |
output Exception value if failed
|
Returns
Type |
Description |
bool |
true if can serialize and save into file; otherwise, false
|
Serialize()
Serializes current Action object into an XML document
Declaration
public virtual string Serialize()
Returns
Type |
Description |
string |
string XML value
|