共用方式為


UnknownXmlElementCollection.Item property

根據index的值集合中取得項目。

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Default Property Item ( _
    index As Integer _
) As XmlElement
    Get
'用途
Dim instance As UnknownXmlElementCollection
Dim index As Integer
Dim value As XmlElement

value = instance(index)
public XmlElement this[
    int index
] { get; }

參數

  • index
    Type: System.Int32

    32 位元的整數,其中包含要從集合中擷取之項目的索引。

Property value

Type: System.Xml.XmlElement
System.Xml.XmlElement表示 XML 項目。

備註

Item屬性是以零起始的。

請參閱

參照

UnknownXmlElementCollection class

UnknownXmlElementCollection members

Microsoft.SharePoint.WebPartPages namespace