SPFieldCollection.CreateNewField Method
Creates a field based on the specified type name and display name.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- typeName
- Type: System.String
A string that contains the internal name of the type of the field.
- displayName
- Type: System.String
A string that contains the display name.
typeName
It would be nice if there was a description for what you actually need to provide for typeName. Does it take a SharePoint type? a .NET type?
MS: This information will be added in the next update of the SharePoint SDK on MSDN. In the meantime, typeName refers to the internal name of the type of the new field. Internal names of field types may not include spaces or punctuation marks. Examples are "Author", "BusinessData", and "SocialSecurityNumber".
MS: This information will be added in the next update of the SharePoint SDK on MSDN. In the meantime, typeName refers to the internal name of the type of the new field. Internal names of field types may not include spaces or punctuation marks. Examples are "Author", "BusinessData", and "SocialSecurityNumber".
- 5/13/2011
- Skeeterbug
- 5/18/2011
- Rickee