SPSite.OpenWeb 方法

Returns the specified Web site from the site collection.

重载 列表

  名称 说明
公共方法 OpenWeb() Returns the Web site that is associated with the URL that is used in an SPSite constructor.
公共方法 OpenWeb(Guid) Returns the Web site with the specified GUID.
公共方法 OpenWeb(String) Returns the Web site that is located at the specified server-relative or site-relative URL.
公共方法 OpenWeb(String, SPSiteOpenWebOptions) Returns the Web site that is located at the specified server-relative or site-relative URL and applies specified options to it.
公共方法 OpenWeb(String, Boolean) Returns the Web site that is located at the specified server-relative or site-relative URL based on a Boolean value that specifies whether the exact URL must be supplied.

页首

另请参阅

引用

SPSite 类

SPSite 成员

Microsoft.SharePoint 命名空间