GetValueResult Class¶
Return value for the helper method used by Copy/Move. Needed to ensure we can make a different decision in the calling method when the value is null because it cannot be fetched (HasError = true) versus when it actually is null (much like why RemovedPropertyTypeResult is used for returning type in the Remove operation).
- Namespace
Microsoft.AspNetCore.JsonPatch.Helpers
- Assemblies
- Microsoft.AspNetCore.JsonPatch
Constructors¶
-
GetValueResult
(System.Object, System.Boolean)¶ public GetValueResult(object propertyValue, bool hasError)
-
Properties¶
-
Microsoft.AspNetCore.JsonPatch.Helpers.GetValueResult.
HasError
¶ HasError: true when an error occurred, the operation didn’t complete succesfully
Return type: System.Boolean public bool HasError { get; }
-
Microsoft.AspNetCore.JsonPatch.Helpers.GetValueResult.
PropertyValue
¶ The value of the property we’re trying to get
Return type: System.Object public object PropertyValue { get; }
-