UserProfileHelper.GetUserProfilePerson method
Gets a user profile as person (string) type.
Namespace: Microsoft.Office.Workflow.Actions
Assembly: Microsoft.Office.Workflow.Actions (in Microsoft.Office.Workflow.Actions.dll)
Syntax
'Declaration
Public Shared Function GetUserProfilePerson ( _
context As WorkflowContext, _
schemaName As String, _
propertyName As String, _
user As String _
) As String
'Usage
Dim context As WorkflowContext
Dim schemaName As String
Dim propertyName As String
Dim user As String
Dim returnValue As String
returnValue = UserProfileHelper.GetUserProfilePerson(context, _
schemaName, propertyName, user)
public static string GetUserProfilePerson(
WorkflowContext context,
string schemaName,
string propertyName,
string user
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context of the activity that is currently being executed.
schemaName
Type: System.StringA string value that represents the name of the schema describing a user profile.
propertyName
Type: System.StringA string value that represents the name of the property in a user profile.
user
Type: System.StringA string value that represents a user of SharePoint.
Return value
Type: System.String
A string value of the user profile corresponding to the given user and the given property.
Remarks
This method returns the account name of the given user in string type.