SPFieldCollection Methods
Include Protected Members
Include Inherited Members
The SPFieldCollection type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
![]() |
Add(SPField) | Adds a field to the collection based on the specified field. |
![]() |
Add(String, SPFieldType, Boolean) | Creates a field in the collection based on the specified display name, field type, and Boolean value. |
![]() |
Add(String, SPFieldType, Boolean, Boolean, StringCollection) | Creates a field in the collection based on the specified display name, field type, Boolean values for other field properties, and choices in the case of a Choice field. |
![]() |
AddDependentLookup | Adds a secondary lookup field that depends on a primary lookup field for its relationship to the list where it gets its information. |
![]() |
AddFieldAsXml(String) | Creates a field based on the specified schema. |
![]() |
AddFieldAsXml(String, Boolean, SPAddFieldOptions) | Creates a field based on the specified schema, Boolean value, and field options. |
![]() |
AddLookup(String, Guid, Boolean) | Creates a lookup field in the collection of fields for one list that points to a field in the collection for another list in the same website. |
![]() |
AddLookup(String, Guid, Guid, Boolean) | Creates a lookup field in the collection of fields for one list that points to a field in the collection for another list in a different website. |
![]() ![]() |
AddSPFieldCreatorDelegate | Adds a SPField callback to the list of field creator delegates. |
![]() |
Contains | Returns a Boolean value that indicates whether the collection contains the field with the specified GUID. |
![]() |
ContainsField | Returns a Boolean value that indicates whether the collection contains the specified field. |
![]() |
ContainsFieldWithStaticName | Returns a Boolean value that indicates whether the collection contains the field with the specified static name. |
![]() |
CreateNewField | Creates a field based on the specified type name and display name. |
![]() |
Delete | Deletes the field with the specified internal, display or static name from the collection. |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetEnumerator | Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.) |
![]() |
GetField | Returns the field with the specified internal, display, or static name from the collection. |
![]() |
GetFieldByInternalName | Returns the field with the specified internal name from the collection. |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetObjectData | (Inherited from SPAutoSerializingObject.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
GetTypedEnumerator<T> | Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
OnDeserialization | (Inherited from SPAutoSerializingObject.) |
![]() |
ToString | (Inherited from Object.) |
![]() |
TryGetFieldByStaticName | Returns the field with the specified static name from the collection. |
![]() |
UpdateParent | (Inherited from SPAutoSerializingObject.) |
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
![]() ![]() |
ICollection.CopyTo | Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.) |
Top
.gif)
.gif)
.gif)
.gif)
.gif)