다음을 통해 공유


SPFolderHierarchy.TryGetFolderByUrl Method (SPWeb, String, Boolean, SPFolder)

Namespace:  Microsoft.Office.Server.Utilities
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Shared Function TryGetFolderByUrl ( _
    web As SPWeb, _
    folderUrl As String, _
    fCheckIfExists As Boolean, _
    <OutAttribute> ByRef folder As SPFolder _
) As Boolean
'Usage
Dim web As SPWeb
Dim folderUrl As String
Dim fCheckIfExists As Boolean
Dim folder As SPFolder
Dim returnValue As Boolean

returnValue = SPFolderHierarchy.TryGetFolderByUrl(web, _
    folderUrl, fCheckIfExists, folder)
public static bool TryGetFolderByUrl(
    SPWeb web,
    string folderUrl,
    bool fCheckIfExists,
    out SPFolder folder
)

Parameters

Return Value

Type: System.Boolean
Returns Boolean.

See Also

Reference

SPFolderHierarchy Class

SPFolderHierarchy Members

TryGetFolderByUrl Overload

Microsoft.Office.Server.Utilities Namespace