SPFolderHierarchy.TryGetFolder Method
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Function TryGetFolder ( _
strFolderUrl As String, _
<OutAttribute> ByRef folder As SPFolder _
) As Boolean
'Usage
Dim instance As SPFolderHierarchy
Dim strFolderUrl As String
Dim folder As SPFolder
Dim returnValue As Boolean
returnValue = instance.TryGetFolder(strFolderUrl, _
folder)
public bool TryGetFolder(
string strFolderUrl,
out SPFolder folder
)
Parameters
- strFolderUrl
Type: System.String
- folder
Type: Microsoft.SharePoint.SPFolder
Return Value
Type: System.Boolean
Returns Boolean.