Share via


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

  • listId
    Type: System.String

    A string that represents the GUID of the SharePoint Foundation list identifier (ID). May also be the display name of the list.

  • listItem
    Type: System.Int32

    An integer that represents the SharePoint Foundation list item in a specified list.

  • lower
    Type: System.Double

    A double value that represents the lower-bound file size, in KB.

  • upper
    Type: System.Double

    A 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.

See also

Reference

Helper class

Helper members

FileSizeIs overload

Microsoft.SharePoint.WorkflowActions namespace