Share via


Helper.WordsInTitle method (WorkflowContext, String, Int32, String)

Verifies that a word or words are included in the title of a specified SharePoint Foundation 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 Integer, _
    words As String _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As Integer
Dim words As String
Dim returnValue As Boolean

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

Parameters

  • listId
    Type: System.String

    A string that represents the GUID of the SharePoint Foundation list. May also be the display name of the list.

  • listItem
    Type: System.Int32

    An integer that represents the SharePoint Foundation list item in a specified list.

  • words
    Type: System.String

    A string that contains the word or group of words to be verified.

Return value

Type: System.Boolean
true if the word pattern is contained in the title field; otherwise, the value is false.

See also

Reference

Helper class

Helper members

WordsInTitle overload

Microsoft.SharePoint.WorkflowActions namespace