Partager via


Item Property

Returns an object from a Parts or Properties collection.

objPartsOrProperties.Item(index)

objPartsOrProperties  A reference to a Parts 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.

Remarks

Example

Microsoft Visual Basic Scripting Edition:

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

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

Platforms: Microsoft Windows Server 2003

WebPartQualifier PropertyApplies to: Parts Collection, Properties Collection