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
)
參數
strUrl
Type: System.String資料夾的伺服器相對 URL。
傳回值
Type: Microsoft.SharePoint.SPFolder
指定的資料夾。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | strUrl是 null 。 |
備註
使用者必須使用這個方法的BrowseDirectories權限。