IDataPacker Interface
.NET Standard 2.x
Represents an object that can package multiple types of data element together.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
public interface IDataPacker;
Properties
| Name | Return Type | Description |
|---|---|---|
| Count | int | Gets the number of elements that have been added into the IDataPacker object. |
| DataFormat | DataFormat | Gets the format of the text specified when creating the IDataPacker object. |
| Keys | string[] | Gets the keys for the elements which have been added into the IDataPacker object. |
| Raw | string | Gets the raw string of text which contains all of the elements in the IDataPacker object. |
Method
| Name | Return Type | Description |
|---|---|---|
| AddRaw(string key, string value) | void | Add a raw text string as an element to the IDataPacker object. |
| ContainsKey(string key) | bool | Checks whether a specified element exists in the current IDataPacker object. |
| GetTextString(DataFormat format) | string | Gets a text string in the specified format which contains all elements in the current IDataPacker object. |
| RemoveKey(string key) | bool | Removes the specified element from the IDataPacker object. |