Partilhar via


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

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.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace