## ThrowHelper::GetJsonElementWrongTypeException(JsonValueKind, JsonValueKind) method




```cpp
static InvalidOperationException System::Text::Json::ThrowHelper::GetJsonElementWrongTypeException(JsonValueKind expectedType, JsonValueKind actualType)
```

## See Also

* Enum [JsonValueKind](../../jsonvaluekind/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.TeX for C++](../../../)
## ThrowHelper::GetJsonElementWrongTypeException(String, JsonValueKind) method




```cpp
static InvalidOperationException System::Text::Json::ThrowHelper::GetJsonElementWrongTypeException(String expectedTypeName, JsonValueKind actualType)
```

## See Also

* Class [String](../../../system/string/)
* Enum [JsonValueKind](../../jsonvaluekind/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.TeX for C++](../../../)
