JsonExtensions.IsString(JToken, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether or not the given JSON token matches the expected string.
public static bool IsString(this Newtonsoft.Json.Linq.JToken token, string expectedValue);
static member IsString : Newtonsoft.Json.Linq.JToken * string -> bool
<Extension()>
Public Function IsString (token As JToken, expectedValue As String) As Boolean
Parameters
- token
- Newtonsoft.Json.Linq.JToken
The token to check.
- expectedValue
- String
The expected string value.
Returns
true
if the given JSON token matches the expected string, false
otherwise.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET