Поделиться через


SPFormCollection Class

Represents a collection of SPForm objects.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPFormCollection

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

Syntax

<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPFormCollection _
    Inherits SPBaseCollection

Dim instance As SPFormCollection
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPFormCollection : SPBaseCollection

Remarks

Use the Forms property of the SPList class to return the collection of forms for a list.

Use an indexer to return a single form from the collection. For example, assuming the collection is assigned to a variable named myForms , use myForms[index] in C#, or myForms(index) in Microsoft Visual Basic, where index is either the index number of the form in the collection or the site-relative URL of the form.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPFormCollection Members

Microsoft.SharePoint Namespace