Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Part VI: Appendixes > Hour 21, "Programming Windows Script Components"

Hour 21, "Programming Windows Script Components"

Quiz

1: Which element is used to declare methods, properties, and events?
A1: Declarations for methods, properties, and events are enclosed by the <public> element.
2: How do you register a script component? Does this approach also work with encoded script components?
A2: Script components are registered by using the Register command in the context menu for each script component—this also includes encoded script components.
3: Why do you need to use the <![CDATA[…]]> section in a script block?
A3: The <![CDATA[…]]> section is used to mark a script block as being opaque. This is necessary for XML conformance because script blocks contain reserved characters such as greater than, less than, and ampersand.
4: What do the <GET/> and <PUT/> elements mean for a property declaration?
A4: The <GET/> element indicates that a property's value is readable via a method named get_propertyname. The same holds true for <PUT/>, allowing you to implement the method put_propertyname with additional checking of the new property value before assigning it to the internal variable representing the property.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial