Helper.FileSizeIs Method (WorkflowContext, String, Int32, Double, Double)
Verifies that a specified SharePoint Foundation list item is within a specified size range.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function FileSizeIs ( _
context As WorkflowContext, _
listId As String, _
listItem As Integer, _
lower As Double, _
upper As Double _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As Integer
Dim lower As Double
Dim upper As Double
Dim returnValue As Boolean
returnValue = Helper.FileSizeIs(context, _
listId, listItem, lower, upper)
public static bool FileSizeIs(
WorkflowContext context,
string listId,
int listItem,
double lower,
double upper
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextWorkflowContext object that contains properties that are associated with the active workflow instance.
listId
Type: System.StringA string that represents the GUID of the SharePoint Foundation list identifier (ID). May also be the display name of the list.
listItem
Type: System.Int32An integer that represents the SharePoint Foundation list item in a specified list.
lower
Type: System.DoubleA double value that represents the lower-bound file size, in KB.
upper
Type: System.DoubleA double value that represents the upper-bound file size, in KB.
Return Value
Type: System.Boolean
true if the file size is within the stated range; otherwise, the value is false.