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

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