SPFieldCollection members
Represents a collection of SPField objects.
The SPFieldCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
SPFieldCollection | Initializes a new instance of the SPFieldCollection class based on the specified website and schema. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
Count | Gets the number of fields in the collection. (Overrides SPBaseCollection.Count.) |
![]() |
Item[Guid] | Gets the field with the specified identifier (ID) from the collection. |
![]() |
Item[Int32] | Gets the field object at the specified index in the collection. In Microsoft C#, this property is an indexer for the SPFieldCollection class. |
![]() |
Item[String] | Gets the field with the specified display name from the collection. In Microsoft C#, this property is an indexer for the SPFieldCollection class. |
![]() |
List | Gets the parent list of the collection. |
![]() |
SchemaXml | Gets the schema that defines the collection. |
![]() |
SchemaXmlWithResourceTokens | Read-only property that retrieves extended XML schema for the field using resource tokens. |
![]() |
Web | Gets the parent website of the fields. |
Top
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.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
GetTypedEnumerator<T> | Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
ToString | (Inherited from Object.) |
![]() |
TryGetFieldByStaticName | Returns the field with the specified static name from the collection. |
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.) |
![]() ![]() |
ICollection.IsSynchronized | Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.) |
![]() ![]() |
ICollection.SyncRoot | Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.) |
Top