共用方式為


SPSite.OpenWeb method

Include protected members
Include inherited members

Returns the specified Web site from the site collection.

Overload list

  Name Description
Public method OpenWeb() Returns the Web site that is associated with the URL that is used in an SPSite constructor.
Public method OpenWeb(Guid) Returns the Web site with the specified GUID.
Public method OpenWeb(String) Returns the Web site that is located at the specified server-relative or site-relative URL.
Public method OpenWeb(String, SPSiteOpenWebOptions) 傳回位於指定的伺服器相對於] 或 [網站相對 URL,並套用的網站指定給它的選項。
Public method 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.

Top

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace