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.String

    The 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.

另请参阅

引用

SPWeb 类

SPWeb 成员

GetFolder 重载

Microsoft.SharePoint 命名空间