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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the active workflow instance.
val
Type: System.ObjectThe value to be validated.
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.