Method TryGet
TryGet(String, out Object)
Gets the value of the specified attribute if it exists in IJSONDocument.
Declaration
bool TryGet(string attribute, out object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | attribute | |
System.Object | value | out Parameter through which the obtained item is returned. |
Returns
Type | Description |
---|---|
System.Boolean | true if the IJSONDocument contains the specified attribute; otherwise, false. |
TryGet<T>(String, out T)
Gets the value of the specified attribute if it exists in IJSONDocument.
Declaration
bool TryGet<T>(string attribute, out T value)
Parameters
Type | Name | Description |
---|---|---|
System.String | attribute | |
T | value | out Parameter through which the obtained item is returned. |
Returns
Type | Description |
---|---|
System.Boolean | true if the IJSONDocument contains the specified attribute; otherwise, false. |
Type Parameters
Name | Description |
---|---|
T | Specifies the type of attribute value to be obtained from IJSONDocument. |