Share via


Item Property

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns an object from a Parts Collection or Properties Collection.

objPartsOrProperties.Item(index)

Parameters

Parameter

Description

objPartsOrProperties

A reference to a Parts Collection or Properties Collection.

index

Either an integer that indicates the ordinal position of the object or a string containing the object name. For properties, the name is the combination of Uniform Resource Name (URN) and property name separated by the pound sign (#) or colon (:). For parts, the name is the WebPartQualifier.

Example 1: Microsoft Visual Basic Scripting Edition

Code

strStorageKey = WPSC.WebPartPage.Parts.Item("WPQ1").StorageKey
strPropertyValue = varPart_WPQ_.Properties.Item("http://schemas.microsoft.com/WebPart/v2#Title").Value

Example 2: Microsoft JScript

var strStorageKey = WPSC.WebPartPage.Parts.Item("WPQ1").StorageKey;
var strPropertyValue = varPart_WPQ_.Properties.Item("http://schemas.microsoft.com/WebPart/v2#Title").Value ;

Requirements

Applies to: Parts Collection, Properties Collection

See Also

Reference

WebPartQualifier Property

Other Resources

Web Part Page Services Component (WPSC) Object Model