Delen via


Helper.AsDNBoolean Method

Attempts to coerce a Boolean value from the specified object and workflow instance.

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

Syntax

'Declaration
Public Shared Function AsDNBoolean ( _
    context As WorkflowContext, _
    val As Object _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim val As Object
Dim returnValue As Boolean

returnValue = Helper.AsDNBoolean(context, _
    val)
public static bool AsDNBoolean(
    WorkflowContext context,
    Object val
)

Parameters

Return Value

Type: System.Boolean
false if val is null , zero, empty, or false; otherwise true.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace