Json.NET - Quick Starts & API Documentation
GetKeyForItem Method (item)
Namespaces ► Newtonsoft.Json.Serialization ► JsonPropertyCollection ► GetKeyForItem(JsonProperty)
When implemented in a derived class, extracts the key from the specified element.
Declaration Syntax
C# | Visual Basic | Visual C++ |
protected override string GetKeyForItem( JsonProperty item )
Protected Overrides Function GetKeyForItem ( _ item As JsonProperty _ ) As String
protected: virtual String^ GetKeyForItem( JsonProperty^ item ) override
Parameters
- item (JsonProperty)
- The element from which to extract the key.
Return Value
The key for the specified element.