SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following code in my workflow, but I dont know what to put in one of the parameters. It mentions context but what is context on the microsoft site? I don't know what it's referring to.

ResolveToEmailName(**what should I put here ?** , GroupName);
share|improve this question

You need to provide a DependencyProperty of type WorkflowContext as shown below. Then use __Context as first parameter in above method. Check this for an example.

public static DependencyProperty __ContextProperty = System.Workflow.ComponentModel.DependencyProperty.Register("__Context",
            typeof(WorkflowContext), typeof(ExpandSharePointGroup));

        public WorkflowContext __Context
                return ((WorkflowContext)(base.GetValue(__ContextProperty)));
                base.SetValue(__ContextProperty, value);
share|improve this answer
Hi The ExpandSharePointGroup gives an error, could not be found, missing a Using directive or assembly reference ? – Raj Chahal Jan 13 '12 at 12:33
Is this a compile error, yes than include assemblies and namespaces as shown in link above. – Ashish Patel Jan 13 '12 at 13:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.