Click to Rate and Give Feedback

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
SPWorkflowTaskProperties.AssignedTo Property (Microsoft.SharePoint.Workflow)
Gets or sets the user name of the person to whom the workflow task is assigned.

Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Property AssignedTo As String
Visual Basic (Usage)
Dim instance As SPWorkflowTaskProperties
Dim value As String

value = instance.AssignedTo

instance.AssignedTo = value
C#
public string AssignedTo { get; set; }

Property Value

A String that represents the user name.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
DOMAIN\user      pjoyceAIS ... Chiliyago   |   Edit   |   Show History

This must be in the form DOMAIN\Usename. To get the username from a "Person or Group" type field in a sharepoint list, use:


using Microsoft.SharePoint;

SPFieldUserValue userValue = new SPFieldUserValue(workflowProperties.Web, retrievedFieldValue);
string userName=userValue.User.LoginName;


Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker