Partilhar via


SPViewFieldCollection Members

Include Protected Members
Include Inherited Members

Represents the collection of fields returned in a view.

The SPViewFieldCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of view fields in the collection. (Overrides SPBaseCollection.Count.)
Public property Item Gets the internal name of the view field at the specified index in the collection.
Public property SchemaXml Gets the schema that specifies the view fields in the collection.
Public property UpgradedPersistedProperties (Inherited from SPAutoSerializingObject.)
Public property View Gets the parent view for the collection.

Top

Methods

  Name Description
Public method Add(String) Adds the field with the specified name to the collection.
Public method Add(SPField) Adds the specified field to the collection.
Public method Delete(String) Deletes the field with the specified name from the collection.
Public method Delete(SPField) Deletes the specified field from the collection.
Public method DeleteAll Deletes all the view fields from the collection.
Public method Equals (Inherited from Object.)
Public method Exists Returns a Boolean value that indicates whether the specified view field exists.
Public method Explicit(Int32) Verifies whether the field at the specified index in the collection is explicitly declared in the view definition.
Public method Explicit(String) Verifies whether the field with the specified name in the collection is explicitly declared in the view definition.
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Public method MoveFieldTo Moves a specified field to a specified position in the collection of view fields.
Protected method OnDeserialization (Inherited from SPAutoSerializingObject.)
Public method ToString (Inherited from Object.)
Public method ToStringCollection Loads the names of the view fields into a StringCollection object.
Protected method UpdateParent (Inherited from SPAutoSerializingObject.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.)

Top

See Also

Reference

SPViewFieldCollection Class

Microsoft.SharePoint Namespace