Search Results for

    Show / Hide Table of Contents

    Method TryGetData

    | Improve this Doc View Source

    TryGetData(String, out ISectionData)

    Gets the data of a section.

    Declaration
    bool TryGetData(string section, out ISectionData data)
    Parameters
    Type Name Description
    String section

    The name of the section to get.

    ISectionData data

    When this method returns, the data associated with the specified section, if the section is found; otherwise, the default value is null. This parameter is passed uninitialized.

    Returns
    Type Description
    Boolean

    true if the section exists, otherwise, returns false.

    Exceptions
    Type Condition
    ArgumentNullException

    section is null.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2021 seztion-parser