Class MetaData
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:Request["page-number"] = 2;
int pageNumber = Response.Request.Meta.Get<int>("page-number");
Inheritance
System.Object
MetaData
Namespace: IronWebScraper
Assembly: IronWebScraper.dll
Syntax
public class MetaData : Dictionary<string, object>
Constructors
MetaData()
Declaration
public MetaData()
Methods
Get<T>(String)
Returns the specified meta object cast as the appropriate type.
Get<int>("index")
Declaration
public T Get<T>(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | Type |
Exceptions
Type | Condition |
---|---|
System.Collections.Generic.KeyNotFoundException |