Condividi tramite


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

Return Value

Type: System.String
The form XML.

Remarks

This method creates form XML according to the pageType and the fields of the list.

See Also

Reference

XsltListFormWebPart Class

XsltListFormWebPart Members

GenerateFormXml Overload

Microsoft.SharePoint.WebPartPages Namespace