80 references to Name
System.ServiceModel (60)
System\ServiceModel\Channels\SecurityBindingElementImporter.cs (2)
317
bool signed = messageSignedParts.IsHeaderIncluded(header.
Name
, header.Namespace);
318
bool encrypted = messageEncryptedParts.IsHeaderIncluded(header.
Name
, header.Namespace);
System\ServiceModel\ComIntegration\DispatchProxy.cs (7)
135
if (!nameToDisp.TryGetValue(param.
Name
, out dispID))
138
dispToName[dispIndex] = param.
Name
;
139
nameToDisp[param.
Name
] = dispIndex;
143
if (!paramDictionary.TryGetValue(param.
Name
, out paramInfo))
150
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.CannotResolveTypeForParamInMessageDescription, param.
Name
, msgDesc.Body.WrapperName, msgDesc.Body.WrapperNamespace), HR.DISP_E_MEMBERNOTFOUND));
152
paramInfo.name = param.
Name
;
153
paramDictionary[param.
Name
] = paramInfo;
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
172
ParameterModeException parameterModeException = new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_ElementIsNotNillable, part.
Name
, part.Namespace));
System\ServiceModel\Description\MessageContractExporter.cs (7)
185
string partName = string.IsNullOrEmpty(part.UniquePartName) ? part.
Name
: part.UniquePartName;
566
string elementName = part.
Name
;
617
wsdlOperation.ParameterOrder[paramInfo.Position] = part.
Name
;
741
headerBinding.Part = string.IsNullOrEmpty(header.UniquePartName) ? header.
Name
: header.UniquePartName;
949
XmlQualifiedName typeName = ExportType(dataContractType, header.
Name
, operation.Name, out xsdType);
979
XmlQualifiedName typeName = ExportType(dataContractType, description.Body.ReturnValue.
Name
, operation.Name, out xsdType);
987
XmlQualifiedName typeName = ExportType(dataContractType, bodyPart.
Name
, operation.Name, out xsdType);
System\ServiceModel\Description\MessageContractImporter.cs (6)
782
return (x.
Name
== y.
Name
&& x.Namespace == y.Namespace);
1681
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxDataContractSerializerDoesNotSupportEncoded, part.
Name
)));
1712
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxDataContractSerializerDoesNotSupportBareArray, part.
Name
)));
2057
XmlName memberName = new XmlName(part.
Name
, true /*isEncoded*/);
2073
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxDocEncodedNotSupported, part.
Name
)));
System\ServiceModel\Description\MessageHeaderDescriptionCollection.cs (1)
24
return new XmlQualifiedName(item.
Name
, item.Namespace);
System\ServiceModel\Description\MessagePartDescriptionCollection.cs (1)
24
return new XmlQualifiedName(item.
Name
, item.Namespace);
System\ServiceModel\Description\MessagePropertyDescriptionCollection.cs (1)
23
return item.
Name
;
System\ServiceModel\Description\OperationGenerator.cs (6)
748
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SfxNoTypeSpecifiedForParameter, setting.
Name
)));
761
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SfxUseTypedMessageForCustomAttributes, setting.
Name
, localAttributes[0].AttributeType.BaseType)));
860
if (setting.
Name
!= defaultName.EncodedName)
863
CustomAttributeHelper.CreateOrOverridePropertyDeclaration(decl, MessageContractMemberAttribute.NamePropertyName, setting.
Name
);
881
if (setting.
Name
!= defaultName.EncodedName)
886
CustomAttributeHelper.FindOrCreateAttributeDeclaration<MessageParameterAttribute>(attributes), MessageParameterAttribute.NamePropertyName, setting.
Name
);
System\ServiceModel\Description\ServiceContractGenerator.cs (2)
735
i = String.CompareOrdinal(p1.
Name
, p2.
Name
);
System\ServiceModel\Description\TypeLoader.cs (6)
597
return string.Compare(a.
Name
, b.
Name
, StringComparison.Ordinal);
1181
if (partDescriptionCollection.Contains(new XmlQualifiedName(partDescription.
Name
, partDescription.Namespace)))
1182
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidMessageContractException(SR.GetString(SR.SFxDuplicateMessageParts, partDescription.
Name
, partDescription.Namespace)));
1513
if (partDescriptionCollection.Contains(new XmlQualifiedName(partDescription.
Name
, partDescription.Namespace)))
1515
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidMessageContractException(SR.GetString(SR.SFxDuplicateMessageParts, partDescription.
Name
, partDescription.Namespace)));
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (4)
464
if (headerName != header.
Name
)
467
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxHeaderNameMismatchInMessageContract, message.MessageType, header.MemberInfo.Name, header.
Name
, headerName)));
469
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxHeaderNameMismatchInOperation, this.Operation.Name, this.Operation.DeclaringContract.Name, this.Operation.DeclaringContract.Namespace, header.
Name
, headerName)));
494
wrapperName = wrapperPart.
Name
;
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (8)
138
messageInfo.HeaderDescriptionTable.Add(headerDescription.
Name
, headerDescription.Namespace, headerDescription);
164
PartInfo partInfo = new PartInfo(part, AddToDictionary(part.
Name
), AddToDictionary(ns), knownTypes, serializerFactory);
267
SR.GetString(SR.SFxInvalidMessageBodyErrorSerializingParameter, part.Description.Namespace, part.Description.
Name
, sx.Message), sx));
353
XmlObjectSerializer serializerLocal = serializerFactory.CreateSerializer(dataContractType, headerDescription.
Name
, headerDescription.Namespace, this.knownTypes);
449
SR.GetString(SR.SFxInvalidMessageBodyErrorDeserializingParameter, part.Description.Namespace, part.Description.
Name
), e));
454
SR.GetString(SR.SFxInvalidMessageBodyErrorDeserializingParameter, part.Description.Namespace, part.Description.
Name
), e));
461
part.Description.Namespace, part.Description.
Name
, e.Message),
469
part.Description.Namespace, part.Description.
Name
, e.Message),
System\ServiceModel\Dispatcher\OperationFormatter.cs (3)
435
properties.Add(propertyDescription.
Name
, parameter);
454
if (properties.ContainsKey(propertyDescription.
Name
))
456
parameters[propertyDescription.Index] = properties[propertyDescription.
Name
];
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
282
AddToDictionary(dictionary, part.
Name
),
339
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxMessagePartDescriptionMissingType, bodyDescription.
Name
, bodyDescription.Namespace)));
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (1)
481
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.UnknownHeaderCannotProtected, contract.Name, contract.Namespace, header.
Name
, header.Namespace)));
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
42
partName = streamPart.
Name
;
System\ServiceModel\Security\ChannelProtectionRequirements.cs (1)
340
XmlQualifiedName headerName = new XmlQualifiedName(header.
Name
, header.Namespace);
System.ServiceModel.Activities (14)
System\ServiceModel\Activities\ContractValidationHelper.cs (11)
360
if (partName != targetPart.
Name
)
362
Constraint.AddValidationError(context, new ValidationError(SR2.PropertyMismatch(partName, "parameter name", targetPart.
Name
, operation.Name, operation.DeclaringContract.Name)));
415
if (iterator.MoveNext() && (string)iterator.Key == targetMessageBody.ReturnValue.
Name
)
424
else if (parameters.Contains(targetMessageBody.ReturnValue.
Name
))
426
Constraint.AddValidationError(context, new ValidationError(SR2.ParameterPositionMismatch(targetMessageBody.ReturnValue.
Name
, targetOperation.Name, targetOperation.DeclaringContract.Name, "0")));
439
if (iterator.MoveNext() && (string)iterator.Key == targetPart.
Name
)
444
Constraint.AddValidationError(context, new ValidationError(SR2.ParameterTypeMismatch(targetPart.
Name
, targetPart.Type.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name)));
448
else if (parameters.Contains(targetPart.
Name
))
450
Constraint.AddValidationError(context, new ValidationError(SR2.ParameterPositionMismatch(targetPart.
Name
, targetOperation.Name, targetOperation.DeclaringContract.Name, benchmarkIndex)));
455
Constraint.AddValidationError(context, new ValidationError(SR2.MissingParameter(targetPart.
Name
, targetOperation.Name, targetOperation.DeclaringContract.Name)));
468
if (!targetHasReturnValue || targetHasReturnValue && name != targetMessageBody.ReturnValue.
Name
)
System\ServiceModel\Activities\Receive.cs (1)
570
content.Parameters.Add(messagePart.
Name
, (OutArgument)(outArgument));
System\ServiceModel\Activities\SendReply.cs (2)
333
content.Parameters.Add(message.Body.ReturnValue.
Name
, (InArgument)returnArgument);
341
content.Parameters.Add(messagePart.
Name
, (InArgument)(inArgument));
System.ServiceModel.Web (6)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (1)
122
WebServiceParameterData parameterData = new WebServiceParameterData(XmlConvert.DecodeName(messagePart.
Name
), paramType, p);
System\ServiceModel\Description\WebHttpBehavior.cs (3)
1012
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR2.GetString(SR2.NoOutOrRefStreamParametersAllowed, message.Body.Parts[i].
Name
, declaringOperation.Name, declaringOperation.DeclaringContract.Name)));
1208
SR2.GetString(SR2.GETCannotHaveBody, operation.Name, operation.DeclaringContract.Name, operation.Messages[0].Body.Parts[0].
Name
)));
1251
new InvalidOperationException(System.ServiceModel.SR2.GetString(System.ServiceModel.SR2.StreamBodyMemberNotSupported, this.GetType().ToString(), contractName, opName, md.MessageType.ToString(), description.
Name
)));
System\ServiceModel\Dispatcher\HelpPage.cs (2)
261
where !template.PathSegmentVariableNames.Contains(part.
Name
.ToUpperInvariant()) && !template.QueryValueVariableNames.Contains(part.
Name
.ToUpperInvariant())