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