SPWebCollection methods

The SPWebCollection type exposes the following members.

Methods

  Name Description
Public method Add(String) Creates an SPWeb object with the specified website-relative URL.
Public method Add(String, String, String, UInt32, SPWebTemplate, Boolean, Boolean) Creates an SPWeb object with the specified site-relative URL, title, description, locale ID, and site definition or site template object.
Public method Add(String, String, String, UInt32, String, Boolean, Boolean) Creates a website with the specified site-relative URL, title, description, locale ID, and site definition or site template name.
Public method Delete Deletes the website with the specified website-relative URL from the collection.
Public method Equals (Inherited from Object.)
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 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 ToString (Inherited from Object.)

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 method IEnumerable<SPWeb>.GetEnumerator Returns a strongly typed enumerator that iterates through the collection.

Top

See also

Reference

SPWebCollection class

Microsoft.SharePoint namespace