SPWeb.GetFolder 方法 (String)
Gets the folder that is located at the specified URL.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
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
类型:System.StringThe server-relative URL for the folder.
返回值
类型:Microsoft.SharePoint.SPFolder
The specified folder.
异常
异常 | 条件 |
---|---|
ArgumentNullException | strUrl is null . |
备注
The user must have BrowseDirectories permission to use this method.