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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextWorkflowContext object that contains properties that are associated with the active workflow instance.
strUrl
Type: System.StringA 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.