Helper.ToBooleanExceptNull Method
Converts a specified value into an equivalent Boolean value.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function ToBooleanExceptNull ( _
context As WorkflowContext, _
val As Object _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim val As Object
Dim returnValue As Boolean
returnValue = Helper.ToBooleanExceptNull(context, _
val)
public static bool ToBooleanExceptNull(
WorkflowContext context,
Object val
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the active workflow instance.
val
Type: System.ObjectA value to be converted.
Return Value
Type: System.Boolean
true if val converts to true; false otherwise.
Remarks
This method throws a CoercionException if val is null or val cannot be converted to a Boolean object.