2 writes to Parent
System.Activities (2)
System\Activities\Activity.cs (2)
895
this.
Parent
= null;
1040
this.
Parent
= parent;
67 references to Parent
System.Activities (67)
System\Activities\Activity.cs (9)
567
if (object.ReferenceEquals(parent, this.
Parent
))
913
if (this.
Parent
== null)
924
parentEnvironment = this.
Parent
.PublicEnvironment.Parent;
939
parentEnvironment = this.
Parent
.PublicEnvironment;
942
parentEnvironment = this.
Parent
.ImplementationEnvironment;
957
ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityDelegateHandlersMustBeDeclarations(this.DisplayName, activityDelegate.Owner.DisplayName, this.
Parent
.DisplayName), false, activityDelegate.Owner));
1016
else if (this.
Parent
== null)
1024
ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityCannotBeReferencedWithoutTarget(this.DisplayName, parent.DisplayName, this.
Parent
.DisplayName), parent));
1030
ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityCannotBeReferenced(this.DisplayName, parent.DisplayName, referenceTarget.DisplayName, this.
Parent
.DisplayName), false, parent));
System\Activities\ActivityUtilities.cs (1)
654
ActivityValidationServices.ValidateArguments(activity, activity.
Parent
== null, ref tempValidationErrors);
System\Activities\Debugger\DebugInfo.cs (1)
215
activity = activity.
Parent
;
System\Activities\Debugger\DebugManager.cs (8)
474
activity = activity.
Parent
;
477
activity = activity.
Parent
;
494
if (activity.
Parent
!= null && !IsParallelActivity(activity.
Parent
))
496
threadId = GetExecutingThreadId(activity.
Parent
, false);
522
Fx.Assert(primeCurrentInstance || (activity.
Parent
== instance.Activity), "Argument Expression is not given correct parent instance");
549
if (activity.
Parent
!= null)
551
threadName += activity.
Parent
.DisplayName;
System\Activities\Debugger\SourceLocationProvider.cs (4)
80
Fx.Assert(rootActivity.
Parent
!= null, "Compiled XAML implementation always have a parent.");
81
rootActivity = rootActivity.
Parent
;
100
if (rootActivity.
Parent
!= null)
102
localAssembly = rootActivity.
Parent
.GetType().Assembly;
System\Activities\DynamicUpdate\ActivityComparer.cs (2)
120
return collection.Where(a => a.
Parent
== parent).ToList();
378
if (object.ReferenceEquals(idspace[i].
Parent
, idspace.Owner))
System\Activities\DynamicUpdate\DynamicUpdateMap.cs (3)
324
Fx.Assert(updatedDefinition.
Parent
== null && !this.IsForImplementation, "This should only be called on a workflow definition");
520
if (activity.
Parent
!= null)
541
if (activity.
Parent
!= null)
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (21)
124
if (originalActivity.
Parent
!= null && originalActivity.
Parent
.MemberOf == originalActivity.MemberOf)
127
updateMap.TryGetUpdateEntry(originalActivity.
Parent
.InternalId, out parentEntry);
147
return result.Where(a => a != null && a.
Parent
== activity);
895
if (newChild.
Parent
!= source)
898
source, newChild, newChild.
Parent
));
900
if (newChild.MemberOf != newChild.
Parent
.MemberOf)
904
if (oldChild.
Parent
!= null && oldChild.MemberOf != oldChild.
Parent
.MemberOf)
911
newChild, oldChild, newChild.
Parent
, oldChild.
Parent
));
915
foreach (Activity newSibling in GetPublicDeclaredChildren(newChild.
Parent
, true))
985
foreach (Variable variable in newChild.
Parent
.RuntimeVariables)
1100
if (currentActivity.
Parent
== null)
1102
return originalActivity.
Parent
== null;
1112
if (currentActivity.
Parent
== currentActivity.MemberOf.Owner)
1114
return originalActivity.
Parent
== this.OldIdSpace.Owner;
1117
return originalActivity.
Parent
!= null &&
1118
GetMatch(currentActivity.
Parent
) == originalActivity.
Parent
;
1211
if (newChild.
Parent
!= source || newChild.MemberOf != source.MemberOf || GetMatch(newChild) != oldChild)
System\Activities\DynamicUpdate\DynamicUpdateMapQuery.cs (1)
206
currentActivity = currentActivity.
Parent
;
System\Activities\DynamicUpdate\NativeActivityUpdateMapMetadata.cs (1)
64
if (child.
Parent
== parent)
System\Activities\Expressions\CompiledExpressionInvoker.cs (2)
298
Activity root = this.metadata.CurrentActivity.
Parent
;
311
root = root.
Parent
;
System\Activities\NativeActivityContext.cs (1)
558
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CanOnlyScheduleDirectChildren(parent.Activity.DisplayName, activity.DisplayName, activity.
Parent
.DisplayName)));
System\Activities\Validation\ActivityValidationServices.cs (8)
312
source = source.
Parent
;
340
source = source.
Parent
;
353
prefix = SR.ValidationErrorPrefixForPublicActivityWithHiddenParent(source.
Parent
, source);
555
ValidationError error = new ValidationError(SR.CanInduceIdleActivityInArgumentExpression(runtimeArgument.Name, activity.
Parent
.DisplayName, activity.DisplayName), true, runtimeArgument.Name, activity.
Parent
);
573
ValidationError error = new ValidationError(SR.CanInduceIdleActivityInArgumentExpression(runtimeArgument.Name, expressionRoot.
Parent
.DisplayName, activity.DisplayName), true, runtimeArgument.Name, expressionRoot.
Parent
);
583
Activity configuredActivity = expressionActivity.
Parent
;
System\Activities\Validation\ValidationContext.cs (2)
51
while (currentNode.
Parent
!= null)
53
currentNode = currentNode.
Parent
;
System\Activities\Validation\ValidationHelper.cs (1)
287
if (argument.Owner != null && argument.Owner.
Parent
== null && ArgumentDirectionHelper.IsOut(argument.Direction))
System\Activities\XamlIntegration\CompiledExpressionActivityVisitor.cs (1)
192
if (activity == activity.Children[i].
Parent
)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
2479
currentActivity = currentActivity.
Parent
;