Share via


Helper.WordsInTitle Method (WorkflowContext, String, SPItemKey, String)

Verifies that a word or words are included in the title of the specified list item.

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

Syntax

'Declaration
Public Shared Function WordsInTitle ( _
    context As WorkflowContext, _
    listId As String, _
    listItem As SPItemKey, _
    words As String _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As SPItemKey
Dim words As String
Dim returnValue As Boolean

returnValue = Helper.WordsInTitle(context, _
    listId, listItem, words)
public static bool WordsInTitle(
    WorkflowContext context,
    string listId,
    SPItemKey listItem,
    string words
)

Parameters

  • listId
    Type: System.String

    A string that represents the GUID of the list. The name of the list may also be specified for this parameter.

  • words
    Type: System.String

    A string containing the word or words that should be present in the title of the given list item.

    There is no need for delimiters as the lookup will just parse the whole string looking for the specified pattern. If the specified value is found, the method will return True.

Return Value

Type: System.Boolean
true if the words are included in the title; otherwise, false.

See Also

Reference

Helper Class

Helper Members

WordsInTitle Overload

Microsoft.SharePoint.WorkflowActions Namespace