JsonValue.Item Property (String)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
This indexer is not supported for this base class and throws an exception.
Namespace: System.Json
Assembly: System.Json (in System.Json.dll)
Syntax
'Declaration
Public Overridable Property Item ( _
key As String _
) As JsonValue
public virtual JsonValue this[
string key
] { get; set; }
Parameters
- key
Type: System.String
The key of the element to get or set.
Property Value
Type: System.Json.JsonValue
Returns JsonValue.
Remarks
The exception thrown is the InvalidOperationException. This method is overloaded in the implementation of the JsonObject class, which consists of a collection of key/value pairs and inherits from this class.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.