C# Class Google.PowerShell.Common.JsonExtensions

Static class that contains extension static to manipulate JToken.
Exibir arquivo Open project: GoogleCloudPlatform/google-cloud-powershell

Public Methods

Method Description
TryGetPropertyValue ( this propertiesJson, string key, string &value ) : bool

Search the JToken and its children recursively for a key that matches the given key. If such a key is found, set the value to the ref variable value and returns true. Otherwise, returns false.

Method Details

TryGetPropertyValue() public static method

Search the JToken and its children recursively for a key that matches the given key. If such a key is found, set the value to the ref variable value and returns true. Otherwise, returns false.
public static TryGetPropertyValue ( this propertiesJson, string key, string &value ) : bool
propertiesJson this
key string
value string
return bool