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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that represents a workflow context.
listId
Type: System.StringA string that represents the GUID of the SharePoint Foundation list. May also be the display name of the list.
listItem
Type: System.Int32An integer that represents the SharePoint Foundation list item in a specified list.
words
Type: System.StringA 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.