Class ProviderDataTypeItem<TValue>
ProviderDataTypeItem is just like a CacheItem, but it has some limited fields
Inherited Members
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class ProviderDataTypeItem<TValue> : ProviderItemBase, IProviderDataTypeItem
Type Parameters
Name | Description |
---|---|
TValue |
Constructors
ProviderDataTypeItem(TValue)
Initializes an instance of the class DataTypeItem.
Declaration
public ProviderDataTypeItem(TValue data)
Parameters
Type | Name | Description |
---|---|---|
TValue | data | Data object. |
ProviderDataTypeItem(TValue, DistributedDataType)
Initializes an instance of CacheItem.
Declaration
public ProviderDataTypeItem(TValue data, DistributedDataType type)
Parameters
Type | Name | Description |
---|---|---|
TValue | data | Data object. |
DistributedDataType | type | Contains the type of distributed data type. |
ProviderDataTypeItem(DistributedDataType)
Initializes an instance of the CacheItem.
Declaration
public ProviderDataTypeItem(DistributedDataType type)
Parameters
Type | Name | Description |
---|---|---|
DistributedDataType | type | Contains the type of distributed data type. |
ProviderDataTypeItem(Int64)
Initializes an instance of the Counter Item.
Declaration
public ProviderDataTypeItem(long counter)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | counter | Value to initialize with. |
Properties
Counter
Gets/Sets the value of the Counter.
Declaration
public long Counter { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 | Value of the counter. |
Data
Gets/Sets the value of the DataType Item.
Declaration
public virtual TValue Data { get; set; }
Property Value
Type | Description |
---|---|
TValue | Value of the DataType Item. |
Type
Gets/Sets the value of the CacheItem.
Declaration
public DistributedDataType Type { get; set; }
Property Value
Type | Description |
---|---|
DistributedDataType | Value of the CacheItem. |
Methods
GetDataAsJson<T>()
Gets the value of DataType item in the form of JsonValueBase.
Declaration
public virtual T GetDataAsJson<T>()
where T : JsonValueBase
Returns
Type | Description |
---|---|
T | DataType item in the form of JsonValueBase. |
Type Parameters
Name | Description |
---|---|
T | Type of JsonValueBase or other derived classes. |