JsonObjectItem(String) Property

Gets or sets the value of a property by name. When the indexer is read, using a nonexistent propertyName returns Undefined, just like in JavaScript.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public JsonValue this[
	string propertyName
] { get; set; }

Parameters

propertyName  String
The name of the property to get or set.

Return Value

JsonValue
The value of the property with the specified propertyName, or Undefined if no such property is found.

Implements

IDictionaryTKey, TValueItemTKey

Exceptions

ArgumentNullExceptionpropertyName is .

See Also