Share via


FormCollection.GetByPageType Method

Returns the list form with the specified page type.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
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)
[RemoteAttribute]
public Form GetByPageType(
    PageType formType
)

Parameters

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).

See Also

Reference

FormCollection Class

FormCollection Members

Microsoft.SharePoint.Client Namespace