API reference
API reference
Select your platform
No SDKs available
No versions available

OperationResultExtensions Class

Extension methods for OVRSpatialAnchor.OperationResult.
An OVRSpatialAnchor.OperationResult represents the result of an asynchronous operation of a method in the OVRSpatialAnchor class.
An operation may either succeed, in which case IsSuccess is true, or fail, in which case IsError is true and the value of the OVRSpatialAnchor.OperationResult will provide the reason for the failure.

Static Member Functions

Tests whether an OVRSpatialAnchor.OperationResult represents an unqualified success.
Parameters
res
The value to test.
Returns
Returns true if res is a successful result, otherwise false.
Tests whether an OVRSpatialAnchor.OperationResult represents an error.
Parameters
res
The value to test.
Returns
Returns true if res is an error result, otherwise false.
(Obsolete) Tests whether an OVRSpatialAnchor.OperationResult represents a warning (also known as a "qualified success").
There are no OVRSpatialAnchor.OperationResult values that represent warnings, so this method need not be used. Deprecated
A warning (or "qualified success") means that the operation didn't fail, but succeeded with some additional information.
Parameters
res
The value to test.
Returns
Returns true if res is a warning, otherwise false.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon