VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Data Namespace / CloneableObjectStorageInMemory Class / AddItem(String,Object) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    AddItem(String,Object) Method (CloneableObjectStorageInMemory)
    In This Topic
    Adds new item to the data storage.
    Syntax
    'Declaration
    
    Public Overridable Sub AddItem( _
    ByVal key
    The item identifier.
    As System.String, _
    ByVal item
    The item data.
    As System.Object _
    )
    public virtual void AddItem(
    System.String key,
    System.Object item
    )
    public: virtual void AddItem(
    System.String key,
    System.Object item
    )
    public:
    virtual void AddItem(
    System.String key,
    System.Object item
    )

    Parameters

    key
    The item identifier.
    item
    The item data.
    Exceptions
    ExceptionDescription
    Thrown if key is null or empty.
    Thrown if this instance is disposed.
    Thrown if key exists already.
    Thrown if storage can't store specified item.
    Requirements

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

    See Also