ClassFindParamCollection
Class to manage a collection of FindParam objects.
Definition
Namespace:ArtOfTest.WebAii.ObjectModel
Assembly:ArtOfTest.WebAii.dll
Syntax:
[Obsolete("Please use the FindExpression.StringRepresentation as a simpler serialization mechanizm or the FindExpressionsCollection<T>")]
public class FindParamCollection : Dictionary<string, FindParam>, IDictionary<string, FindParam>, ICollection<KeyValuePair<string, FindParam>>, IDictionary, ICollection, IReadOnlyDictionary<string, FindParam>, IReadOnlyCollection<KeyValuePair<string, FindParam>>, IEnumerable<KeyValuePair<string, FindParam>>, IEnumerable, IDeserializationCallback, IXmlSerializable, ISerializable
Inheritance: objectDictionary<string, FindParam>FindParamCollection
Implements:
Inherited Members
Constructors
FindParamCollection()
Create a new FindParam collection that also be serialized.
Declaration
public FindParamCollection()
FindParamCollection(SerializationInfo, StreamingContext)
Create new FindParamCollection. Serialization Constructor
Declaration
public FindParamCollection(SerializationInfo info, StreamingContext context)
Parameters
info
Serialization info
context
Serialization context
Properties
ReturnNullIfNotFound
Gets/Sets whether to throw or return null if a FindParam is not found.
this[string]
Access a FindParam using its key.
Methods
Add(string, FindParam)
Add a new FindParam item.
GetSchema()
Return the schema used for serialization.
LoadFromFile(string)
Load a FindParamCollection from a file.
Declaration
public static FindParamCollection LoadFromFile(string fileName)
Parameters
fileName
The file name to load the xml from.
Returns
The FindParamCollection object.
LoadFromXml(string)
Load a FindParamCollection from an xml persisted string.
Declaration
public static FindParamCollection LoadFromXml(string xml)
Parameters
xml
The string string.
Returns
The FindParamCollection object.
OnItemAdded(FindParamCollectionItemAddedEventArgs)
Trigger the ItemAdded event.
Declaration
public void OnItemAdded(FindParamCollectionItemAddedEventArgs item)
Parameters
item
FindParamCollectionItemAddedEventArgs
The event argument.
ReadXml(XmlReader)
Deserialized from the xmlReader and initialize the object
Declaration
public void ReadXml(XmlReader reader)
Parameters
reader
The reader.
Implements
Save(string)
Serialized and saves the current collection to a file. You can later load that file using FindParamCollection.Load().
Declaration
public void Save(string fileName)
Parameters
fileName
The file name to save to.
ToArray()
Get an array of FindParam objects contained in this collection.
ToXml()
Serialize and return the current FindParamCollection as a string. You can later use that string to create a FindParamCollection using the .Load().
Declaration
public string ToXml()
Returns
The serialized Xml that represents this object.
WriteXml(XmlWriter)
Serialize this object to the XmlWriter
Declaration
public void WriteXml(XmlWriter writer)
Parameters
writer
The writer.
Implements
Events
ItemAdded
Occurs when a new items is added to this collection.
Declaration
public event EventHandler<FindParamCollectionItemAddedEventArgs> ItemAdded
Event Value