Code examples

Code examples throughout this guide illustrate the use of the objects or APIs introduced in the adjoining sections. Use these examples in your application only if you are sure that the example code performs the action you intend to perform. The examples may or may not work if you copy them from the book into your application.