Export (0) Print
Expand All

SPWeb.GetFolder Method (String)

Gets the folder that is located at the specified URL.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public SPFolder GetFolder(
	string strUrl
)

Parameters

strUrl
Type: System.String

The server-relative URL for the folder.

Return Value

Type: Microsoft.SharePoint.SPFolder
The specified folder.

ExceptionCondition
ArgumentNullException

strUrl is null .

The user must have BrowseDirectories permission to use this method.

Show:
© 2015 Microsoft