Storage Class
Provides a set of methods to insert, query, and delete data in the persistent storage.
Namespace:Neo.SmartContract.Framework.Services
Assembly: Neo.SmartContract.Framework
Syntax#
public static class StorageProperties#
| Name | Description |
|---|---|
| CurrentContext | Returns the current storage context |
| CurrentReadOnlyContext | Returns the read-only context of the current contract storage |
Methods#
| Name | Description |
|---|---|
| Delete | Deletes the value corresponding to the key from the given storage context. This method has multiple overloads. |
| Get | Gets the byte[] value corresponding to the given key from the given storage context. This method has multiple overloads. |
| Put | Puts the key-value pair into the given storage context. This method has multiple overloads. |
| Find | Finds the content in the given storage context. This method has multiple overloads. |
Constructor#
The Storage class is a static class and does not require a constructor.