Delen via


Helper.IsNotNullZeroEmptyFalse Method

Verifies whether the specified value is not null , zero, empty, or false.

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

Syntax

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

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

Parameters

Return Value

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

Remarks

The accepted input types of the val are null , String, Int32, Int64, Double, DateTime, and Boolean.

This method throws a FormatException() exception if val is a String that cannot be converted to a Boolean value.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace