
## GetKeyForItem {#getkeyforitem}

When implemented in a derived class, extracts the key from the specified element.

**Returns:** The key for the specified element.

```cpp
GetKeyForItem(System::SharedPtr < MessageObjectProperty > item)
```

| Parameter | Description |
| --- | --- |
| item | The element from which to extract the key. |

