Show / Hide Table of Contents

Storage Class

Provides a set of methods to insert, query, and delete data in the persistent store.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public static class Storage

Attributes

NameDescription
CurrentContext Returns the current context of the store

Methods

NameDescription
Delete(StorageContext, byte[]) Deletes a value from the persistent store based on the given key
Delete(StorageContext, string) Deletes a value from the persistent store based on the given key
Get(StorageContext, byte[]) Returns a value from the persistent store based on the given key
Get(StorageContext, string) Returns a value from the persistent store based on the given key
Put(StorageContext, byte[], byte[]) Inserts a given value to the given key in the persistent store
Put(StorageContext, byte[], string) Inserts a given value to the given key in the persistent store
Put(StorageContext, string, byte[]) Inserts a given value to the given key in the persistent store
Put(StorageContext, string, string) Inserts a given value to the given key in the persistent store

Constructor

The Storage class is a static class and does not require a constructor.