Export (0) Print
Expand All

SPWebCollection members

Represents a collection of SPWeb objects.

The SPWebCollection type exposes the following members.

  Name Description
Public property Count Gets the number of websites that are represented in the collection. (Overrides SPBaseCollection.Count.)
Public property Item[Guid] Gets the element with the specified GUID from the collection. In C#, this property is an indexer for the SPWebCollection class.
Public property Item[Int32] Gets the element at the specified index in the collection. In C#, this property is an indexer for the SPWebCollection class.
Public property Item[String] Gets the element with the specified site-relative URL from the collection.
Public property Names Gets an array that contains the site-relative URLs of all the websites in the collection.
Public property WebsInfo List of SPWebInfo objects representing the SPWeb objects in the collection.
Top

  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

  Name Description
Explicit interface implemetation Private method ICollection.CopyTo Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.)
Explicit interface implemetation Private method IEnumerable<SPWeb>.GetEnumerator Returns a strongly typed enumerator that iterates through the collection.
Explicit interface implemetation Private property ICollection.IsSynchronized Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.)
Explicit interface implemetation Private property ICollection.SyncRoot Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.)
Top
Show:
© 2014 Microsoft