Partager via


XDocuments3.Item Property (Object)

Gets a reference to the specified XDocument object from the collection.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
ReadOnly Default Property Item ( _
    varIndex As Object _
) As XDocument
    Get
'Usage
Dim instance As XDocuments3
Dim varIndex As Object
Dim value As XDocument

value = instance(varIndex)
XDocument this[
    Object varIndex
] { get; }

Parameters

  • varIndex
    Type: System.Object

    An expression that specifies the position of a member of the XDocumentsCollection. If a numeric expression, the argument must be a number from 0 to the value of the Count minus 1. If a string expression, the argument must be the Uniform Resource Locator (URL) path of a member of the collection.

Property Value

Type: Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument
Returns XDocument.

Implements

XDocuments2.Item[Object]
XDocuments.Item[Object]

Remarks

If the value provided for the varIndex argument does not match any existing member of the collection, an error occurs.

After you have set a reference to the XDocument object that the Item property returns, you can access any of its properties or methods.

This member can be accessed without restrictions.

See Also

Reference

XDocuments3 Interface

XDocuments3 Members

Item Overload

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace