FormCollection.GetByPageType method
Returns the list form with the specified page type.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Function GetByPageType ( _
formType As PageType _
) As Form
'Usage
Dim instance As FormCollection
Dim formType As PageType
Dim returnValue As Form
returnValue = instance.GetByPageType(formType)
public Form GetByPageType(
PageType formType
)
Parameters
formType
Type: Microsoft.SharePoint.Client.PageTypeSpecifies the page type of the list form to return.
Return value
Type: Microsoft.SharePoint.Client.Form
Returns a Form instance representing the list form with the specified page type.
Remarks
If there is more than one list form with the specified page type, the server must return one list form. If there is no list form with the specified page type, the server must return a null reference (Nothing in Visual Basic).