82 references to Name
System.Activities (76)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (3)
618if (string.Equals(reference.Name, targetName, StringComparison.OrdinalIgnoreCase)) 633if (string.Equals(reference.Name, targetName, StringComparison.OrdinalIgnoreCase)) 644if (string.Equals(reference.Name, targetName, StringComparison.OrdinalIgnoreCase))
Microsoft\VisualBasic\Activities\VisualBasicNameShadowingConstraint.cs (3)
33foundMultiple = FindLocationReferencesFromEnvironment(objectToValidateContext.Environment, locationReference.Name); 36Constraint.AddValidationError(context, new ValidationError(SR.AmbiguousVBVariableReference(locationReference.Name))); 54if (string.Equals(reference.Name, targetName, StringComparison.OrdinalIgnoreCase))
System\Activities\Activity.cs (1)
1938if (argument.Name == "Result")
System\Activities\ActivityContext.cs (2)
198throw FxTrace.Exception.AsError(new InvalidOperationException(SR.LocationTypeMismatch(locationReference.Name, typeof(T), locationReference.Type))); 265throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CannotSetValueToLocation(value != null ? value.GetType() : typeof(T), locationReference.Name, locationReference.Type)));
System\Activities\ActivityInstance.cs (2)
908argumentValueOverrides.TryGetValue(argument.Name, out overrideValue); 1250TD.InArgumentBound(argument.Name, this.Activity.GetType().ToString(), this.Activity.DisplayName, this.Id, argumentValue);
System\Activities\ActivityLocationReferenceEnvironment.cs (4)
110if (locationReference.Name == null) 121if (this.Declarations.ContainsKey(locationReference.Name)) 130ValidationError validationError = new ValidationError(SR.SymbolNamesMustBeUnique(locationReference.Name)) 140this.Declarations.Add(locationReference.Name, locationReference);
System\Activities\ActivityUtilities.cs (1)
469if (argument.Name == argumentName)
System\Activities\Argument.cs (5)
204violationOwner.AddTempValidationError(new ValidationError(SR.ArgumentDirectionMismatch(argument.Name, argument.Direction, binding.Direction))); 210violationOwner.AddTempValidationError(new ValidationError(SR.ArgumentTypeMismatch(argument.Name, argument.Type, binding.ArgumentType))); 271ValidationError validationError = new ValidationError(SR.ResultCannotBeSetOnArgumentExpressions, false, this.RuntimeArgument.Name, owner); 289new ValidationError(SR.ArgumentValueExpressionTypeMismatch(this.ArgumentType, actualExpression.ResultType), false, this.RuntimeArgument.Name, owner)); 301new ValidationError(SR.ArgumentLocationExpressionTypeMismatch(expectedType.FullName, actualExpression.GetType().FullName), false, this.RuntimeArgument.Name, owner));
System\Activities\CodeActivity.cs (1)
186(this.RuntimeArguments.Count == 1 && this.RuntimeArguments[0].Name == Argument.ResultValue))
System\Activities\Debugger\DebugInfo.cs (4)
182Name = argument.Name, 236Name = argument.Name, 304if (!existingNames.Contains(argument.Name)) 307existingNames.Add(argument.Name);
System\Activities\DynamicUpdate\ActivityComparer.cs (2)
183if (currentArgument.Name != originalArgument.Name ||
System\Activities\DynamicUpdate\ArgumentInfo.cs (1)
30this.Name = argument.Name;
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (2)
668SR.AddedIdleArgumentBlockDU(newIdleArgument.Name, idleActivity)); 1268SR.AddedIdleArgumentBlockDU(newIdleArgument.Name, idleActivity));
System\Activities\Expressions\ExpressionServices.cs (3)
711ArgumentName = ra.Name, 1510ArgumentName = runtimeArgument.Name, 1568ArgumentName = runtimeArgument.Name,
System\Activities\Hosting\SymbolResolver.cs (3)
247if (locationReference.Name == null) 254if (this.symbols.TryGetValue(locationReference.Name, out externalLocationReference)) 388return resolver.GetLocation(this.Name, this.Type);
System\Activities\InlinedLocationReference.cs (1)
39return this.innerReference.Name;
System\Activities\Runtime\ActivityExecutor.cs (2)
2361throw FxTrace.Exception.AsError(new InvalidOperationException(SR.NoOutputLocationWasFound(argument.Name))); 2363this.workflowOutputs.Add(argument.Name, location.Value);
System\Activities\Runtime\MappableObjectManager.cs (1)
98this.Name = locationOwner.Name;
System\Activities\RuntimeArgument.cs (14)
226if (property.Name == this.Name && property.PropertyType.IsGenericType) 288ActivityUtilities.Add(ref validationErrors, ProcessViolation(parent, SR.ArgumentIsAddedMoreThanOnce(this.Name, this.Owner.DisplayName))); 296ActivityUtilities.Add(ref validationErrors, ProcessViolation(parent, SR.ArgumentAlreadyInUse(this.Name, this.Owner.DisplayName, parent.DisplayName))); 304ActivityUtilities.Add(ref validationErrors, ProcessViolation(parent, SR.RuntimeArgumentBindingInvalid(this.Name, this.boundArgument.RuntimeArgument.Name))); 392this.Name, 401throw FxTrace.Exception.AsError(new InvalidOperationException(SR.ArgumentDoesNotExistInEnvironment(this.Name))); 420throw FxTrace.Exception.AsError(new InvalidOperationException(SR.ArgumentDoesNotExistInEnvironment(this.Name))); 456throw FxTrace.Exception.AsError(new InvalidOperationException(SR.ArgumentDoesNotExistInEnvironment(this.Name))); 463return new ValidationError(errorMessage, false, this.Name) 474throw FxTrace.Exception.AsError(new InvalidOperationException(SR.RuntimeArgumentNotOpen(this.Name))); 482this.nameHash = CRCHashCode.Calculate(this.Name); 562return string.Compare(x.Name, y.Name, StringComparison.CurrentCulture);
System\Activities\Tracking\ActivityStateRecord.cs (1)
302if (TrackData(argument.Name, argument.Id, currentInstance, arguments, containsWildcard, ref trackedArguments))
System\Activities\Validation\ActivityValidationServices.cs (7)
130if (argument.Name == key) 140ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.InputParametersTypeMismatch(argument.Type, argument.Name), rootActivity)); 555ValidationError error = new ValidationError(SR.CanInduceIdleActivityInArgumentExpression(runtimeArgument.Name, activity.Parent.DisplayName, activity.DisplayName), true, runtimeArgument.Name, activity.Parent); 573ValidationError error = new ValidationError(SR.CanInduceIdleActivityInArgumentExpression(runtimeArgument.Name, expressionRoot.Parent.DisplayName, activity.DisplayName), true, runtimeArgument.Name, expressionRoot.Parent); 611ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.DuplicateEvaluationOrderValues(referenceActivity.DisplayName, argument.BoundArgument.EvaluationOrder), false, argument.Name, referenceActivity));
System\Activities\Validation\ValidationHelper.cs (5)
26ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.RequiredArgumentValueNotSupplied(argument.Name), false, argument.Name, activity)); 108configuredArgument.Name, groupName), false, activity)); 121configuredArgument.Name, groupName), false, activity)); 300if (inputs.ContainsKey(argument.Name))
System\Activities\WorkflowDataContext.cs (4)
102if (!string.IsNullOrEmpty(reference.Name) && 103!names.ContainsKey(reference.Name)) 105names.Add(reference.Name, reference); 203: base(reference.Name, new Attribute[0])
System\Activities\XamlIntegration\CompiledLocation.cs (1)
149durableCache.Add(new Tuple<string, Type>(reference.Name, reference.Type));
System\Activities\XamlIntegration\ExpressionTreeRewriter.cs (1)
64if (node.Member.Name == locationReference.Name)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (2)
336AddMember(runtimeArgument.Name, runtimeArgument.Type, contextDescriptor); 702requiredLocationReferences.Add(locationReference.Name);
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (3)
83object other = this.Resolve(reference.Name); 132return p != null && p.Name != null && p.Name.Equals(name);
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (3)
878if (locationReference != null && !string.IsNullOrWhiteSpace(locationReference.Name) && !variables.ContainsKey(locationReference.Name)) 880variables.Add(locationReference.Name, modelVariable);