Share via


SPFormCollection.Item property (String)

Gets the form located at the specified URL from the collection. In C#, this property is an indexer for the SPFormCollection class.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    url As String _
) As SPForm
    Get
'Usage
Dim instance As SPFormCollection
Dim url As String
Dim value As SPForm

value = instance(url)
public SPForm this[
    string url
] { get; }

Parameters

  • url
    Type: System.String

    A string that contains the site-relative URL.

Property value

Type: Microsoft.SharePoint.SPForm
A Microsoft.SharePoint.SPForm object that represents the form.

Remarks

The Item property returns an ArgumentException if the form does not exist at the specified URL.

See also

Reference

SPFormCollection class

SPFormCollection members

Item overload

Microsoft.SharePoint namespace