• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Interface IJsonObject

Interface that is used for the custom implementation of the JSON Object type to be used in NCache.

Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public interface IJsonObject : IEnumerable<KeyValuePair<string, JsonValueBase>>, IEnumerable

Properties

Count

Number of items in the collection.

Declaration
int Count { get; }
Property Value
Type Description
System.Int32

Number of items.

Item[String]

Key based indexer for JSON Object.

Declaration
JsonValueBase this[string attributeName] { get; set; }
Parameters
Type Name Description
System.String attributeName

Key for indexing.

Property Value
Type Description
JsonValueBase

Value associated with the attribute name.

Methods

AddAttribute(String, JsonValue)

Adds JSONValue object with the unique attribute name.

Declaration
void AddAttribute(string attributeName, JsonValue attributeValue)
Parameters
Type Name Description
System.String attributeName

Key against which JSONValue is identified.

JsonValue attributeValue

JSONValue to be added.

AddAttribute(String, JsonValueBase)

Adds JSONValueBase object with the unique attribute name.

Declaration
void AddAttribute(string attributeName, JsonValueBase attributeValue)
Parameters
Type Name Description
System.String attributeName

Key against which JSONValueBase is identified.

JsonValueBase attributeValue

JSONValueBase to be added.

Clear()

Clears all the items in the JSONObject and brings the count of attributes to 0.

Declaration
void Clear()

ContainsAttribute(String)

Checks if any entry exits against attribute name.

Declaration
bool ContainsAttribute(string attributeName)
Parameters
Type Name Description
System.String attributeName

Key to search in the JSONObject.

Returns
Type Description
System.Boolean

True, if the key exists.

GetAttributeNames()

Gets all the attribute names.

Declaration
ICollection<string> GetAttributeNames()
Returns
Type Description
System.Collections.Generic.ICollection<System.String>

System.Collections.Generic.ICollection which contains all the keys.

GetAttributeValue(String)

Gets attribute against the specified attribute name.

Declaration
JsonValueBase GetAttributeValue(string attributeName)
Parameters
Type Name Description
System.String attributeName

Key that identifies the JSONObject.

Returns
Type Description
JsonValueBase

JSONObject against the key specified if exits.

RemoveAttribute(String)

Removes the attribute entry identified by the attribute name.

Declaration
bool RemoveAttribute(string attributeName)
Parameters
Type Name Description
System.String attributeName

Unique key that identifies the attribute.

Returns
Type Description
System.Boolean

True, if attribute removed successfully.

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top