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. |
attribute | Name of the attribute. |
System. |
value | Out parameter through which the obtained item is returned. |
Returns
Type | Description |
---|---|
System. |
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. |
attribute | Name of the attribute. |
T | value | Out parameter through which the obtained item is returned. |
Returns
Type | Description |
---|---|
System. |
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. |