1 write to Owner
System.Activities (1)
System\Activities\Variable.cs (1)
146this.Owner = parent;
38 references to Owner
System.Activities (38)
System\Activities\Activity.cs (1)
979return InitializeRelationship(variable.Owner, isPublic, RelationshipType.VariableDefault, ref validationErrors);
System\Activities\ActivityUtilities.cs (1)
595environment.Declare(variable, variable.Owner, ref validationErrors);
System\Activities\DynamicUpdate\ActivityComparer.cs (4)
174IdSpace currentIdSpace = currentVariable.IsPublic ? currentVariable.Owner.MemberOf : currentVariable.Owner.ParentOf; 175IdSpace originalIdSpace = originalVariable.IsPublic ? originalVariable.Owner.MemberOf : originalVariable.Owner.ParentOf;
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (17)
638this.BlockUpdate(newVariable.Owner, UpdateBlockedReason.AddedIdleExpression, mapEntry, 643this.BlockUpdate(newVariable.Owner, UpdateBlockedReason.NewHandle, mapEntry); 769if (variables[i].Owner.RootActivity != this.builder.OriginalWorkflowDefinition) 935if (newVariable.Owner != source) 938source, newVariable.Name, newVariable.Owner)); 940if (GetMatch(newVariable.Owner) != oldVariable.Owner) 943newVariable.Name, oldVariable.Name, newVariable.Owner, oldVariable.Owner)); 955foreach (Variable newSibling in newVariable.Owner.RuntimeVariables) 964this.newToOldMatches[newVariable] = oldVariable.Owner.RuntimeVariables.IndexOf(oldVariable); 1020Activity matchingOwner = GetMatch(newVariable.Owner); 1060oldIndex = newVariable.Owner.ImplementationVariables.IndexOf(newVariable); 1219if (newVariable.Owner != source || !newVariable.IsPublic || GetMatch(newVariable) != oldVariable) 1245Fx.Assert(newVariable.Owner.MemberOf == this.updatedActivity.ParentOf, "Should only call GetMatch for variables owned by the participating activity"); 1246int index = newVariable.Owner.RuntimeVariables.IndexOf(newVariable); 1249Activity matchingOwner = GetMatch(newVariable.Owner);
System\Activities\DynamicUpdate\DynamicUpdateMapQuery.cs (6)
115Activity oldOwner = this.MatchNewToOld(newVariable.Owner, out entry); 121int newIndex = newVariable.Owner.RuntimeVariables.IndexOf(newVariable); 168Activity newOwner = this.MatchOldToNew(oldVariable.Owner, out entry); 174int oldIndex = oldVariable.Owner.RuntimeVariables.IndexOf(oldVariable); 254if (variable.Owner == null) 262return IsInNewDefinition(variable.Owner, true);
System\Activities\DynamicUpdate\UpdateMapMetadata.cs (1)
101if (updatedVariable != null && updatedVariable.Owner == this.TargetActivity)
System\Activities\Runtime\LocationEnvironment.cs (1)
311Fx.Assert(variable.Owner == this.Definition, "We should only be targeting the vairables at this scope.");
System\Activities\Variable.cs (7)
123return this.Owner != null; 136if (this.Owner != null) 138ValidationError validationError = new ValidationError(SR.VariableAlreadyInUseOnActivity(this.Name, parent.DisplayName, this.Owner.DisplayName), false, this.Name, parent); 203if (this.IsPublic || !object.ReferenceEquals(this.Owner, context.Activity)) 205throw FxTrace.Exception.AsError(new InvalidOperationException(SR.VariableOnlyAccessibleAtScopeOfDeclaration(context.Activity, this.Owner))); 217if (!context.Environment.TryGetLocation(this.Id, this.Owner, out location)) 257if (!environment.TryGetLocation(this.Id, this.Owner, out location))