Share via


SimpleItemForm.CreateSimpleItemFieldsSchema method

Generates the SPFieldCollection object with the provided SPField objects.

Namespace:  Microsoft.Office.Server.WebControls
Assembly:  Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)

Syntax

'Declaration
Public Function CreateSimpleItemFieldsSchema ( _
    collectionOfFields As ICollection(Of SPField) _
) As SPFieldCollection
'Usage
Dim instance As SimpleItemForm
Dim collectionOfFields As ICollection(Of SPField)
Dim returnValue As SPFieldCollection

returnValue = instance.CreateSimpleItemFieldsSchema(collectionOfFields)
public SPFieldCollection CreateSimpleItemFieldsSchema(
    ICollection<SPField> collectionOfFields
)

Parameters

Return value

Type: Microsoft.SharePoint.SPFieldCollection
The SPFieldCollection object that is built on the provided [T:System.Collections.Generic,ICollection{Microsoft.SharePoint.SPField}] object.

Remarks

This method creates the Collaborative Application Markup Language (CAML) schema string for the specified fields, from which the SPFieldCollection object for rendering the field form is generated.

See also

Reference

SimpleItemForm class

SimpleItemForm members

Microsoft.Office.Server.WebControls namespace