MetaData Class

IronWebScraper

MetaData Class

A flexible dictionary of object values which can be used to attach your own additional data or objects to any Request. Meta can contain objects of any Type including instances of classes, List and Dictionaries. This meta-data can then be accessed while Paring the Response and even passed forwards to the next Request.

Metadata send might include pagination page numbers, referrer Urls, User Ids etc.

E.g:
Examples
Request["page-number"] = 2; 

            int pageNumber = Response.Request.Meta.Get<int>("page-number");
Inheritance Hierarchy

Namespace:  IronWebScraper
Assembly:  IronWebScraper (in IronWebScraper.dll) Version: 4.0.4.25470 (4.0.4.3)
Syntax
public class MetaData : Dictionary<string, Object>
Public Class MetaData
	Inherits Dictionary(Of String, Object)

The MetaData type exposes the following members.

Constructors
  NameDescription
Public methodMetaData
Initializes a new instance of the MetaData class
Top
Properties
  NameDescription
Public propertyComparer (Inherited from DictionaryString, Object.)
Public propertyCount (Inherited from DictionaryString, Object.)
Public propertyItem (Inherited from DictionaryString, Object.)
Public propertyKeys (Inherited from DictionaryString, Object.)
Public propertyValues (Inherited from DictionaryString, Object.)
Top
Methods
  NameDescription
Public methodAdd (Inherited from DictionaryString, Object.)
Public methodClear (Inherited from DictionaryString, Object.)
Public methodContainsKey (Inherited from DictionaryString, Object.)
Public methodContainsValue (Inherited from DictionaryString, Object.)
Public methodEquals (Inherited from Object.)
Public methodCode exampleGetT

Returns the specified meta object cast as the appropriate type.

Examples
E.g:
Get<int>("index")
Public methodGetEnumerator (Inherited from DictionaryString, Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectData (Inherited from DictionaryString, Object.)
Public methodGetType (Inherited from Object.)
Public methodOnDeserialization (Inherited from DictionaryString, Object.)
Public methodRemove (Inherited from DictionaryString, Object.)
Public methodToString (Inherited from Object.)
Public methodTryGetValue (Inherited from DictionaryString, Object.)
Top
See Also