SPField Methods
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

SPField Methods

Windows SharePoint Services 3

The SPField type exposes the following members.

  NameDescription
Public method Delete Deletes the field.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetCustomProperty Returns the value of a custom property as an object.
Public method GetFieldValue Converts the specified value into a field type value object when the field type requires a complex data type that is different from the parent field type.
Public method GetFieldValueAsHtml Returns the field value in HTML format in order to render the field value directly on the page.
Public method GetFieldValueAsText Returns the field value as plain text.
Public method GetFieldValueForEdit Returns the field value that is rendered in Edit mode in Edit and New forms.
Public method GetHashCode (Inherited from Object.)
Public method GetProperty Returns the value that is contained by the specified property.
Public method GetType (Inherited from Object.)
Public method GetValidatedString Used for data serialization logic and for field validation logic that is specific to a custom field type to convert the field value object into a validated, serialized string.
Protected method MemberwiseClone (Inherited from Object.)
Public method OnAdded Occurs after a field is added.
Public method OnDeleting Occurs when a field is being deleted.
Public method OnUpdated Occurs after changes are made to a field.
Public method SetCustomProperty Sets a value for a specified property.
Public method ToString Returns the title of the field. (Overrides Object.ToString().)
Public method Update() Updates the database with changes that are made to the field.
Public method Update(Boolean) Updates the database with changes that are made to the field and optionally propagates the changes to lists that implement the field.
Top
Show:
© 2016 Microsoft