Partilhar via


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

  • listId
    Type: System.String

    The GUID or display name of the SharePoint Foundation.

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.

See Also

Reference

Helper Class

Helper Members

FileSizeIs Overload

Microsoft.SharePoint.WorkflowActions Namespace