共用方式為


SPWeb.GetFolder method (String)

取得位於指定 URL 的資料夾。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function GetFolder ( _
    strUrl As String _
) As SPFolder
'用途
Dim instance As SPWeb
Dim strUrl As String
Dim returnValue As SPFolder

returnValue = instance.GetFolder(strUrl)
public SPFolder GetFolder(
    string strUrl
)

參數

傳回值

Type: Microsoft.SharePoint.SPFolder
指定的資料夾。

Exceptions

Exception Condition
ArgumentNullException

strUrl是 null 。

備註

使用者必須使用這個方法的BrowseDirectories權限。

請參閱

參照

SPWeb class

SPWeb members

GetFolder overload

Microsoft.SharePoint namespace