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.

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

- item (JsonProperty)
- The element from which to extract the key.

The key for the specified element.