Share via


Helper.FileExistInWeb Method

Verifies whether a specified file exists in a specified SharePoint Foundation Web site.

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

Syntax

'Declaration
Public Shared Function FileExistInWeb ( _
    context As WorkflowContext, _
    strUrl As String _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim strUrl As String
Dim returnValue As Boolean

returnValue = Helper.FileExistInWeb(context, _
    strUrl)
public static bool FileExistInWeb(
    WorkflowContext context,
    string strUrl
)

Parameters

  • strUrl
    Type: System.String

    A string that contains the URL for the file.

Return Value

Type: System.Boolean
true if the file exists; otherwise, the value is false.

Remarks

The FileExistInWeb method uses the WorkflowContext object to determine the Web site in which to search.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace