The TeamSite class represents an instance of a Web site based on Microsoft Windows SharePoint Services in the topology of a server farm.
The following table shows the constructors of the TeamSite class and a brief description of each.
|TeamSite||Initializes a new instance of the TeamSite class based on the URL path and VirtualServer object associated with the specified TeamSite object.|
|TeamSite||Initializes a new instance of the TeamSite class based on the relative URL and content database associated with the specified TeamSite object.|
The following table shows the public methods of the TeamSite class and a brief description of each.
|Commit(Boolean)||Persists changes made to the properties of the TeamSite object.|
The following table shows the properties of the TeamSite class, the data type of each property, and a brief description of each.
|Database||Microsoft.SharePoint.Portal.Topology.Database||Gets or sets the Database object associated with the TeamSite object.|
|UrlPath||String||Gets or sets the relative URL of the TeamSite object.|
|VirtualServer||Microsoft.SharePoint.Portal.Topology.VirtualServer||Gets the VirtualServer object that hosts the TeamSite object.|
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
To use the properties and methods of the objects in the Topology namespace you must be a member of the local STS_WPG and SPS_WPG security groups, and a member of the db_owner database role for the configuration database.
In addition, for certain methods, such as those that create a portal site, you must be a member of the local Administrators group, and have membership in the Database Creators and Security Administrators server roles in the SQL Server instance that hosts the configuration database.
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security