共用方式為


SPXmlDocumentCollection.Item property (Int32)

XML 文件集合中指定之索引處取得 XML 文件的內容。

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

Syntax

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

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

參數

  • index
    Type: System.Int32

    XML 文件集合中的文件之以零起始的索引。

Property value

Type: System.String

請參閱

參照

SPXmlDocumentCollection class

SPXmlDocumentCollection members

Item overload

Microsoft.SharePoint namespace