Search Results for

    Show / Hide Table of Contents

    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.

    E.g:
    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
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronWebscraper to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronWebscraper free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.