Class Change
Assembly: Xareus.Scenarios.Relations.dll
Syntax
[Serializable]
public class Change
Constructors
Change()
Declaration
Change(string)
Declaration
public Change(string cause)
Parameters
| Type |
Name |
Description |
| string |
cause |
|
Properties
addNewAction
Declaration
public List<Action> addNewAction { get; set; }
Property Value
cause
Declaration
public string cause { get; set; }
Property Value
datetime
Declaration
public DateTime datetime { get; set; }
Property Value
| Type |
Description |
| DateTime |
|
removeAction
Declaration
public List<string> removeAction { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static Change Deserialize(string xml)
Parameters
| Type |
Name |
Description |
| string |
xml |
|
Returns
Deserialize(string, out Change)
Declaration
public static bool Deserialize(string xml, out Change obj)
Parameters
Returns
Deserialize(string, out Change, out Exception)
Deserializes workflow markup into an Change object
Declaration
public static bool Deserialize(string xml, out Change obj, out Exception exception)
Parameters
| Type |
Name |
Description |
| string |
xml |
string workflow markup to deserialize
|
| Change |
obj |
Output Change 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 Change LoadFromFile(string fileName)
Parameters
| Type |
Name |
Description |
| string |
fileName |
|
Returns
LoadFromFile(string, out Change)
Declaration
public static bool LoadFromFile(string fileName, out Change obj)
Parameters
Returns
LoadFromFile(string, out Change, out Exception)
Deserializes XML markup from file into an Change object
Declaration
public static bool LoadFromFile(string fileName, out Change obj, out Exception exception)
Parameters
| Type |
Name |
Description |
| string |
fileName |
string xml file to load and deserialize
|
| Change |
obj |
Output Change 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 Change 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 Change object into an XML document
Declaration
public virtual string Serialize()
Returns
| Type |
Description |
| string |
string XML value
|