Share via


Helper.WILookupBool Method (WorkflowContext, String, SPItemKey, String)

Looks up and returns the value of the specified Boolean field and workflow. The Boolean fields available are AllowDefaultContentApproval, AllowManual, AutoStartChange, AutoStartCreate, and PermissionsManual.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Public Shared Function WILookupBool ( _
    context As WorkflowContext, _
    ignorestr As String, _
    ignoreitemkey As SPItemKey, _
    fieldName As String _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim ignorestr As String
Dim ignoreitemkey As SPItemKey
Dim fieldName As String
Dim returnValue As Boolean

returnValue = Helper.WILookupBool(context, _
    ignorestr, ignoreitemkey, fieldName)
public static bool WILookupBool(
    WorkflowContext context,
    string ignorestr,
    SPItemKey ignoreitemkey,
    string fieldName
)

Parameters

  • fieldName
    Type: System.String

    A String value that represents the desired Boolean field to return.

Return Value

Type: System.Boolean
true if the field evaluates to true; otherwise, false

See Also

Reference

Helper Class

Helper Members

WILookupBool Overload

Microsoft.SharePoint.WorkflowActions Namespace