78 references to UserData
System.Workflow.Activities (16)
Common\CompModHelpers.cs (16)
1011
if (dependencyObject.
UserData
.Contains(UserDataKeys.DesignTimeTypeNames))
1013
Hashtable typeNames = dependencyObject.
UserData
[UserDataKeys.DesignTimeTypeNames] as Hashtable;
1027
if (!dependencyObject.
UserData
.Contains(UserDataKeys.DesignTimeTypeNames))
1028
dependencyObject.
UserData
[UserDataKeys.DesignTimeTypeNames] = new Hashtable();
1030
Hashtable typeNames = dependencyObject.
UserData
[UserDataKeys.DesignTimeTypeNames] as Hashtable;
1044
if (compositeActivity.
UserData
.Contains(UserDataKeys.CustomActivity))
1046
return (bool)(compositeActivity.
UserData
[UserDataKeys.CustomActivity]);
1055
compositeActivity.
UserData
[UserDataKeys.CustomActivityDefaultName] = activity.Name;
1056
compositeActivity.
UserData
[UserDataKeys.CustomActivity] = true; //
1066
compositeActivity.
UserData
[UserDataKeys.CustomActivity] = false; //
1196
if (!declaringActivity.
UserData
.Contains(UserDataKeys.CustomActivityDefaultName))
1200
declaringActivity.
UserData
[UserDataKeys.CustomActivityDefaultName] = newCustomActivity.Name;
1203
if (((string)declaringActivity.
UserData
[UserDataKeys.CustomActivityDefaultName]) == activityName)
1286
if (!activity.
UserData
.Contains(typeof(AlternateFlowActivityAttribute)))
1289
activity.
UserData
[typeof(AlternateFlowActivityAttribute)] = isAlternateFlowActivityAttribute;
1293
isAlternateFlowActivityAttribute = (bool)activity.
UserData
[typeof(AlternateFlowActivityAttribute)];
System.Workflow.ComponentModel (42)
AuthoringOM\Activity.cs (7)
884
Hashtable lookupPaths = (Hashtable)rootActivity.
UserData
[UserDataKeys.LookupPaths];
1376
this.
UserData
[UserDataKeys.CustomActivity] = this.GetValue(CustomActivityProperty);
1393
this.
UserData
[UserDataKeys.LookupPaths] = lookupPaths;
1402
this.
UserData
[typeof(PersistOnCloseAttribute)] = (this.GetType().GetCustomAttributes(typeof(PersistOnCloseAttribute), true).Length > 0);
1826
if (this.
UserData
.Contains(typeof(PersistOnCloseAttribute)))
1827
return (bool)this.
UserData
[typeof(PersistOnCloseAttribute)];
2194
Hashtable lookupPaths = (Hashtable)rootActivity.
UserData
[UserDataKeys.LookupPaths];
AuthoringOM\Behaviors\Compensate.cs (1)
183
targetList.Add(parent.
UserData
[UserDataKeys.CustomActivityDefaultName] as string);
AuthoringOM\Compiler\XomlCompilerHelpers.cs (3)
146
activity.
UserData
[UserDataKeys.CustomActivity] = false;
633
if (activity != null && activity.
UserData
[key] != null)
634
value = (uint)activity.
UserData
[key];
AuthoringOM\Design\ComponentSerializationService.cs (1)
216
(activityDecl as Activity).
UserData
.Remove(UserDataKeys.CustomActivity);
AuthoringOM\Design\CompositeActivityDesigner.cs (3)
779
if (activity.
UserData
.Contains(typeof(ActivityDesigner)))
781
designerToInsert = activity.
UserData
[typeof(ActivityDesigner)] as ActivityDesigner;
787
activity.
UserData
[typeof(ActivityDesigner)] = designerToInsert;
AuthoringOM\Design\CustomActivityDesigner.cs (4)
103
rootActivity.
UserData
[UserDataKeys.CustomActivity] = false;
109
(eventArgs.Component as Activity).
UserData
[UserDataKeys.CustomActivity] = true;
111
(eventArgs.Component as Activity).
UserData
[UserDataKeys.CustomActivity] = false;
353
((Activity)host.RootComponent).
UserData
[UserDataKeys.NewBaseType] = newBaseType;
AuthoringOM\Serializer\ActivityMarkupSerializer.cs (3)
103
(instance as Activity).
UserData
[UserDataKeys.CustomActivity] = false;
239
if (!instanceActivity.
UserData
.Contains(UserDataKeys.CustomActivity))
240
instanceActivity.
UserData
[UserDataKeys.CustomActivity] = (instanceActivity.Activities.Count > 0);
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (2)
160
if (dependencyObject.
UserData
.Contains(UserDataKeys.DesignTimeTypeNames))
162
Hashtable typeNames = dependencyObject.
UserData
[UserDataKeys.DesignTimeTypeNames] as Hashtable;
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (2)
699
if (obj is DependencyObject && ((DependencyObject)obj).
UserData
.Contains(UserDataKeys.DesignTimeTypeNames))
700
designTimeTypeNames = ((DependencyObject)obj).
UserData
[UserDataKeys.DesignTimeTypeNames] as Hashtable;
Shared\CompModHelpers.cs (16)
1009
if (dependencyObject.
UserData
.Contains(UserDataKeys.DesignTimeTypeNames))
1011
Hashtable typeNames = dependencyObject.
UserData
[UserDataKeys.DesignTimeTypeNames] as Hashtable;
1025
if (!dependencyObject.
UserData
.Contains(UserDataKeys.DesignTimeTypeNames))
1026
dependencyObject.
UserData
[UserDataKeys.DesignTimeTypeNames] = new Hashtable();
1028
Hashtable typeNames = dependencyObject.
UserData
[UserDataKeys.DesignTimeTypeNames] as Hashtable;
1042
if (compositeActivity.
UserData
.Contains(UserDataKeys.CustomActivity))
1044
return (bool)(compositeActivity.
UserData
[UserDataKeys.CustomActivity]);
1053
compositeActivity.
UserData
[UserDataKeys.CustomActivityDefaultName] = activity.Name;
1054
compositeActivity.
UserData
[UserDataKeys.CustomActivity] = true; //
1064
compositeActivity.
UserData
[UserDataKeys.CustomActivity] = false; //
1194
if (!declaringActivity.
UserData
.Contains(UserDataKeys.CustomActivityDefaultName))
1198
declaringActivity.
UserData
[UserDataKeys.CustomActivityDefaultName] = newCustomActivity.Name;
1201
if (((string)declaringActivity.
UserData
[UserDataKeys.CustomActivityDefaultName]) == activityName)
1284
if (!activity.
UserData
.Contains(typeof(AlternateFlowActivityAttribute)))
1287
activity.
UserData
[typeof(AlternateFlowActivityAttribute)] = isAlternateFlowActivityAttribute;
1291
isAlternateFlowActivityAttribute = (bool)activity.
UserData
[typeof(AlternateFlowActivityAttribute)];
System.Workflow.Runtime (2)
WorkflowExecutor.cs (2)
3017
if (activity.
UserData
.Contains(typeof(PersistOnCloseAttribute)))
3019
persistOnClose = (bool)activity.
UserData
[typeof(PersistOnCloseAttribute)];
System.WorkflowServices (18)
System\Workflow\Activities\OperationInfo.cs (3)
237
if (this.
UserData
.Contains(OperationInfoBase.MethodInfoProperty))
239
methodInfo = this.
UserData
[OperationInfoBase.MethodInfoProperty] as MethodInfo;
261
this.
UserData
[OperationInfoBase.MethodInfoProperty] = methodInfo;
System\Workflow\Activities\ReceiveActivity.cs (6)
297
if (this.
UserData
.Contains(typeof(ReceiveOperationInfoHelper)))
299
this.operationHelper = this.
UserData
[typeof(ReceiveOperationInfoHelper)] as ReceiveOperationInfoHelper;
306
this.
UserData
[typeof(ReceiveOperationInfoHelper)] = this.operationHelper;
1084
if ((definition != null) && definition.
UserData
.Contains(typeof(OperationParameterInfoCollection)))
1086
parameters = definition.
UserData
[typeof(OperationParameterInfoCollection)] as OperationParameterInfoCollection;
1093
this.
UserData
[typeof(OperationParameterInfoCollection)] = parameters;
System\Workflow\Activities\SendActivity.cs (6)
249
if (this.
UserData
.Contains(typeof(SendOperationInfoHelper)))
251
this.operationHelper = this.
UserData
[typeof(SendOperationInfoHelper)] as SendOperationInfoHelper;
258
this.
UserData
[typeof(SendOperationInfoHelper)] = this.operationHelper;
506
if ((definition != null) && definition.
UserData
.Contains(typeof(OperationParameterInfoCollection)))
508
parameters = definition.
UserData
[typeof(OperationParameterInfoCollection)] as OperationParameterInfoCollection;
515
this.
UserData
[typeof(OperationParameterInfoCollection)] = parameters;
System\Workflow\Activities\TypedOperationInfo.cs (3)
183
if (this.
UserData
.Contains(OperationInfoBase.MethodInfoProperty))
185
methodInfo = this.
UserData
[OperationInfoBase.MethodInfoProperty] as MethodInfo;
202
this.
UserData
[OperationInfoBase.MethodInfoProperty] = methodInfo;