SPField methods
SharePoint 2013
The SPField type exposes the following members.
| Name | Description | |
|---|---|---|
|
AnnotateField | When overridden in a derived class, adds attributes to the specified XML node and assigns them values from the properties of this SPField object. |
|
Delete | Deletes the field. |
|
Equals | (Inherited from Object.) |
|
Finalize | (Inherited from Object.) |
|
GetCustomProperty | Gets the value of custom property with the specified name. |
|
GetFieldValue | Converts the specified value into a field type value. |
|
GetFieldValueAsHtml | Gets the field value in HTML format in order to render the field value directly on the page. |
|
GetFieldValueAsText | Gets the field value as plain text. |
|
GetFieldValueForClientRender | When overridden in a derived class, converts the field type value into object for use in client Display, Edit and New item forms. |
|
GetFieldValueForEdit | Gets the field value that is rendered in Edit mode in Edit and New forms. |
|
GetHashCode | (Inherited from Object.) |
|
GetJsonClientFormFieldSchema | When overridden in a derived class, gets an object containing information from the field's schema that is useful for client rendering of the field in forms. |
|
GetProperty | Gets the value of the specified property. |
|
GetType | (Inherited from Object.) |
|
GetValidatedString | Validates and converts the field value into a serialized form. |
|
HasValue | Internal function used to verify whether an object is null or not. |
|
ListsFieldUsedIn | Returns information about the Web sites and lists in which the current field is used. |
|
MemberwiseClone | (Inherited from Object.) |
|
OnAdded | Handles the event that occurs after a field is added. |
|
OnAddingToContentType | Handles the event that occurs when a field is added to a specified content type. |
|
OnDeleting | Handles the event that occurs when a field is being deleted. |
|
OnDeletingFromContentType | Handles the event that occurs when a field is deleted from a specified content type. |
|
OnInitFieldNode | This member is reserved for internal use and is not intended to be used directly from your code. |
|
OnUpdated | Handles the event that occurs after changes are made to a field. |
|
ParseAndSetValue | When overridden in a derived class, sets the specified field item to the specified value. |
|
ParseValue | When overridden in a derived class, parses a potential value of the field and returns an object that can be assigned as the value of the field. |
|
RenderFieldValueAsJson | When overridden in a derived class, returns the specified value in JSON format. |
|
RevertCustomizations | Reverts customizations made to the field schema. |
|
SetCustomProperty | Sets a value for the specified property. |
|
ToString | Returns the title of the field. (Overrides Object.ToString().) |
|
Update() | Updates the database with changes that are made to the field. |
|
Update(Boolean) | Updates the database with changes that are made to the field and optionally propagates the changes to lists that implement the field. |
|
ValidateAndParseValue | When overridden in a derived class, validates and parses the input value and returns a valid object that can be the value of the field. |
|
ValidateParseAndSetValue | Calls ValidateAndParseValue(SPListItem, String) and assigns the returned object as the value of the field. |