SPWeb.GetFolder method (String)

Gets the folder that is located at the specified URL.

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

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: