VintaSoft Barcode .NET SDK 15.0: Documentation for Web developer
Vintasoft.Data Namespace / CompositeDataStorage Class / AddItem(String,Object) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    AddItem(String,Object) Method (CompositeDataStorage)
    In This Topic
    Adds new item to the data storage.
    Syntax
    'Declaration
    
    Public Sub AddItem( _
    ByVal key
    The item key.
    As String, _
    ByVal item
    The item data.
    As Object _
    )
    public void AddItem(
    string key,
    object item
    )
    public: void AddItem(
    string* key,
    object* item
    )
    public:
    void AddItem(
    string^ key,
    object^ item
    )

    Parameters

    key
    The item key.
    item
    The item data.
    Exceptions
    ExceptionDescription
    Thrown if key is null or empty.
    Thrown if this instance is disposed.
    Thrown if an element with the same key already exists in the data storage.
    Thrown if data storage cannot store item object.
    Requirements

    Target Platforms: .NET 8; .NET 7, .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5

    See Also