Class StorageMetaData
Storage item meta data.
Inheritance
System.Object
StorageMetaData
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Bayat.SaveSystem.Storage
Assembly: Bayat.SaveSystem.Runtime.dll
Syntax
public class StorageMetaData
Constructors
| Improve this Doc View SourceStorageMetaData()
Initializes a new instance of StorageMetaData
Declaration
public StorageMetaData()
StorageMetaData(Hashtable)
Initializes a new instance of StorageMetaData with the provided predefined data.
Declaration
public StorageMetaData(Hashtable data)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Hashtable | data | The predefined data |
StorageMetaData(IDictionary)
Initializes a new instance of StorageMetaData with the provided predefined data.
Declaration
public StorageMetaData(IDictionary data)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | data | The predefined data |
Fields
| Improve this Doc View SourceData
The internal collection of meta data.
Declaration
public readonly Hashtable Data
Field Value
Type | Description |
---|---|
System.Collections.Hashtable |
Properties
| Improve this Doc View SourceItem[String]
Gets or sets the specified meta data item.
Declaration
public object this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The meta data item key |
Property Value
Type | Description |
---|---|
System.Object | The value of the meta data item |
Methods
| Improve this Doc View SourceGet<T>(String)
Gets the specified meta data item and casts its value to the specified type.
Declaration
public T Get<T>(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The meta data item key |
Returns
Type | Description |
---|---|
T | The value of the meta data item |
Type Parameters
Name | Description |
---|---|
T |
Has(String)
Checkes whether the specified meta data item exists or not.
Declaration
public bool Has(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The meta data item key |
Returns
Type | Description |
---|---|
System.Boolean | True if meta data item exists and false if not |