Helper.ToInt32 Method
Converts a specified value into an equivalent Int32 value.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function ToInt32 ( _
context As WorkflowContext, _
val As Object _
) As Integer
'Usage
Dim context As WorkflowContext
Dim val As Object
Dim returnValue As Integer
returnValue = Helper.ToInt32(context, _
val)
public static int ToInt32(
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.Int32
The value that is converted from the val.
Remarks
This method returns 0 if the val is null .
This method throws a CoercionException if val is null or cannot be converted into an Int32 object.