Helper.WILookupBool Method (WorkflowContext, String, Int32, 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, _
ignoreint As Integer, _
fieldName As String _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim ignorestr As String
Dim ignoreint As Integer
Dim fieldName As String
Dim returnValue As Boolean
returnValue = Helper.WILookupBool(context, _
ignorestr, ignoreint, fieldName)
public static bool WILookupBool(
WorkflowContext context,
string ignorestr,
int ignoreint,
string fieldName
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
ignorestr
Type: System.StringA String that is ignored when returning results.
ignoreint
Type: System.Int32A Int32 value that should be ignored in the result set.
fieldName
Type: System.StringA String value that represents the desired Boolean field to return.
Return Value
Type: System.Boolean
true if the field evaluates to true; otherwise, false