Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

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));

        [Description("Context")]
        [Browsable(true)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        public WorkflowContext __Context
        {
            get
            {
                return ((WorkflowContext)(base.GetValue(__ContextProperty)));
            }
            set
            {
                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
add comment

Your Answer

 
discard

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.