Helper.FileSizeIs Method (WorkflowContext, String, SPItemKey, 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 SPItemKey, _
lower As Double, _
upper As Double _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As SPItemKey
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,
SPItemKey listItem,
double lower,
double upper
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the active workflow instance.
listId
Type: System.StringThe GUID or display name of the SharePoint Foundation.
listItem
Type: Microsoft.SharePoint.Workflow.SPItemKeyThe list item in the specified list.
lower
Type: System.DoubleThe lower-bound file size, in KB.
upper
Type: System.DoubleThe upper-bound file size, in KB.
Return Value
Type: System.Boolean
true if the list item size is between lower KB and the upper KB; otherwise, false.
Remarks
This method determines whether the list item size is within the specified range.