Partilhar via


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

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.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace