Parent Property

         Example         Applies To

Returns the name of the Parent object for the specified object. Read-only Object.

Remarks

Specifying the Parent property of a WebFile object returns the WebFolder object. When an object is contained in a web, the Parent property returns the Web object. For example, if the Theme object is contained in a Web object called "Adventure Works Web", the Parent property returns "Adventure Works Web"; otherwise, for a theme referenced outside of a Web object, the Parent property returns the name of the Application object—in this example, it would return "Microsoft FrontPage". However, when the System object is specified from a client computer, the Parent property returns the Application object of the host, not the client.

The following table describes the values returned for the different object types.

Object Description
MetaTags Returns the WebFile object for the META tags.
NavigationNode Returns the parent NavigationNode object, except in the case of the RootNavigationNode object whose parent is the Web.
NavigationNodes Returns the parent NavigationNode object for the collection of navigation nodes based on the navigation structure.
PageWindow Returns the WebWindow or Application object in which the page resides.
PageWindows Returns the Application object that contains the collection.
Properties Returns the Web, WebFile or WebFolder object from the META tag information.
System Returns the Application object.
Theme Returns the parent (Web or WebFile) object for the theme.
Themes Returns the Web object that contains the collection.
Web Returns the Application object.
WebFile Returns the WebFolder object.
WebFiles Returns the parent WebFolder object.
WebFolder Returns either the parent WebFolder object (if it's a subfolder) or returns the Web object for the root folder.
WebFolders Returns the WebFolder object that contains the collection.
Webs Returns the Application object.
WebWindow Returns the Application object that contains the specified object.
WebWindows Returns the Application object that contains the collection.