SPWebCollection Properties

Include Protected Members
Include Inherited Members

The SPWebCollection type exposes the following members.

Properties

  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 UpgradedPersistedProperties (Inherited from SPAutoSerializingObject.)
Public property WebsInfo List of SPWebInfo objects representing the SPWeb objects in the collection.

Top

Explicit Interface Implementations

  Name Description
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

SPWebCollection Class

Microsoft.SharePoint Namespace