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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
val
Type: System.ObjectA Object.
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.