Share via


Helper.CreatedBy method (WorkflowContext, String, SPItemKey, String)

Retrieves the name of the creator of a list item and compares it to a specified name. If the values match the method returns true.

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

Syntax

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

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

Parameters

  • listId
    Type: System.String

    A string value representing the GUID of the list. This value may also be the list display name.

  • name
    Type: System.String

    The name value that should be compared.

Return value

Type: System.Boolean
true if name is the name of the creator of the specified list item; otherwise, false.

See also

Reference

Helper class

Helper members

CreatedBy overload

Microsoft.SharePoint.WorkflowActions namespace