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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
listId
Type: System.StringA string that represents the GUID of the list. The name of the list may also be specified for this parameter.
listItem
Type: Microsoft.SharePoint.Workflow.SPItemKeyAn integer that represents the specified list.
words
Type: System.StringA 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.