Partilhar via


Helper.ToStringExceptNull Method

Coerces an object into a String.

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

Syntax

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

returnValue = Helper.ToStringExceptNull(context, _
    val)
public static string ToStringExceptNull(
    WorkflowContext context,
    Object val
)

Parameters

Return Value

Type: System.String
The string value.

Remarks

If the value supplied is a string, then this method returns a String. If it is a DateTime object, then it is converted to local time and then to a String. Otherwise, the value will be converted to a String.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace