UserProfileHelper.GetUserProfileDateTime method
Gets a user profile as DateTime type.
Namespace: Microsoft.Office.Workflow.Actions
Assembly: Microsoft.Office.Workflow.Actions (in Microsoft.Office.Workflow.Actions.dll)
Syntax
'Declaration
Public Shared Function GetUserProfileDateTime ( _
context As WorkflowContext, _
schemaName As String, _
propertyName As String, _
user As String _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim schemaName As String
Dim propertyName As String
Dim user As String
Dim returnValue As DateTime
returnValue = UserProfileHelper.GetUserProfileDateTime(context, _
schemaName, propertyName, user)
public static DateTime GetUserProfileDateTime(
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 schema describing a user profile.
propertyName
Type: System.StringA string value that represents the name of property in a user profile.
user
Type: System.StringA string value that represents a user of SharePoint.
Return value
Type: System.DateTime
A DateTime value of the user profile corresponding to the given user and the given property.