Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Syntax
'Declaration
Public Function GetFolder ( _
strUrl As String _
) As SPFolder
'Usage
Dim instance As SPWeb
Dim strUrl As String
Dim returnValue As SPFolder
returnValue = instance.GetFolder(strUrl)
public SPFolder GetFolder(
string strUrl
)
Parameters
strUrl
Type: System.StringThe server-relative URL for the folder.
Return Value
Type: Microsoft.SharePoint.SPFolder
The specified folder.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | strUrl is null . |
Remarks
The user must have BrowseDirectories permission to use this method.