XsltListFormWebPart.GenerateFormXml Method (PAGETYPE, SPList)
Generates the form XML for the XsltListFormWebPart using the specified PAGETYPE and SPList.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function GenerateFormXml ( _
pageType As PAGETYPE, _
list As SPList _
) As String
'Usage
Dim pageType As PAGETYPE
Dim list As SPList
Dim returnValue As String
returnValue = XsltListFormWebPart.GenerateFormXml(pageType, _
list)
public static string GenerateFormXml(
PAGETYPE pageType,
SPList list
)
Parameters
pageType
Type: Microsoft.SharePoint.PAGETYPEThe type of the form that hosts the XsltListFormWebPart.
list
Type: Microsoft.SharePoint.SPListThe SharePoint list.
Return Value
Type: System.String
The form XML.
Remarks
This method creates form XML according to the pageType and the fields of the list.