Share via


Helper.IsValidUser method

Verifies whether the specified user is an SPUser.

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

Syntax

'Declaration
Public Shared Function IsValidUser ( _
    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.IsValidUser(context, _
    listId, listItem, name)
public static bool IsValidUser(
    WorkflowContext context,
    string listId,
    SPItemKey listItem,
    string name
)

Parameters

  • listId
    Type: System.String

    The GUID or display name of the list. This parameter is not used.

  • name
    Type: System.String

    The login name of the user to be verified.

Return value

Type: System.Boolean
true if the specified user is in the list of users in context.SUWeb.SiteUsers; otherwise, false.

Remarks

This method verifies whether the specified user is an SPUser.

See also

Reference

Helper class

Helper members

Microsoft.SharePoint.WorkflowActions namespace