TargetedLocationOperation

Contains the methods for determining whether the targeted location was successfully added.

Methods

Method Name Return Type Description
getErrors string[] Gets the errors that occurred when adding the targeted location.
getResult TargetedLocation Gets the targeted location that was added.
isSuccessful Boolean Gets a Boolean value that indicates whether this operation succeeded.

getErrors

Gets the errors that occurred when adding the targeted location.

Returns

Type Description
string[] An array of symbolic error codes if the add operation failed; otherwise, an empty array. For a description of these codes, see Operation error codes.

getResult

Gets the targeted location that was added.

Returns

Type Description
TargetedLocation The targeted location that was added if the operation succeeded; otherwise, null.

isSuccessful

Gets a Boolean value that indicates whether this operation succeeded.

Returns

Type Description
Boolean Is true if this operation succeeded; otherwise, false.