Class TypeSearch
Defines a type search, meaning a type that must be found in an object
Assembly: Xareus.Relations.dll
Syntax
[Serializable]
[DataContract(Name = "TypeSearch", Namespace = "http://www.insa-rennes.fr/Xareus.Relations")]
public class TypeSearch
Constructors
TypeSearch()
Declaration
TypeSearch(Type, int, int)
Declaration
public TypeSearch(Type type, int minOccurs = 1, int maxOccurs = -1)
Parameters
Type |
Name |
Description |
Type |
type |
|
int |
minOccurs |
|
int |
maxOccurs |
|
Properties
MaxOccurs
The maximum number occurrences of the type (unlimited if -1, default -1)
Declaration
[DataMember]
public int MaxOccurs { get; set; }
Property Value
MinOccurs
The minimum number occurrences of the type (default : 1)
Declaration
[DataMember]
public int MinOccurs { get; set; }
Property Value
Type
Declaration
[DataMember]
public Type Type { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static TypeSearch Deserialize(string xml)
Parameters
Type |
Name |
Description |
string |
xml |
|
Returns
Deserialize(string, out TypeSearch)
Declaration
public static bool Deserialize(string xml, out TypeSearch obj)
Parameters
Returns
Deserialize(string, out TypeSearch, out Exception)
Deserializes workflow markup into an TypeSearch object
Declaration
public static bool Deserialize(string xml, out TypeSearch obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
xml |
string workflow markup to deserialize
|
TypeSearch |
obj |
Output TypeSearch object
|
Exception |
exception |
output Exception value if deserialize failed
|
Returns
Type |
Description |
bool |
true if this XmlSerializer can deserialize the object; otherwise, false
|
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
LoadFromFile(string)
Declaration
public static TypeSearch LoadFromFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
LoadFromFile(string, out TypeSearch)
Declaration
public static bool LoadFromFile(string fileName, out TypeSearch obj)
Parameters
Returns
LoadFromFile(string, out TypeSearch, out Exception)
Deserializes XML markup from file into an TypeSearch object
Declaration
public static bool LoadFromFile(string fileName, out TypeSearch obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
string xml file to load and deserialize
|
TypeSearch |
obj |
Output TypeSearch 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 TypeSearch 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 TypeSearch object into an XML document
Declaration
public virtual string Serialize()
Returns
Type |
Description |
string |
string XML value
|
ToString()
Declaration
public override string ToString()
Returns
Overrides