Return Value

Methods that return a status value return 0 on success, or one of the status codes listed in Status Codes to indicate an error. Methods that return a string return a non-empty value to indicate success.

For any method you can test the Status property immediately after the call to test for success or failure.