2 types derived from MessagePartDescription
System.ServiceModel (2)
System\ServiceModel\Description\MessageHeaderDescription.cs (1)
16public class MessageHeaderDescription : MessagePartDescription
System\ServiceModel\Description\MessagePropertyDescription.cs (1)
13public class MessagePropertyDescription : MessagePartDescription
14 instantiations of MessagePartDescription
System.ServiceModel (12)
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (1)
354MessagePartDescription partDescription = new MessagePartDescription(name.EncodedName, ns);
System\ServiceModel\Description\MessageContractExporter.cs (1)
206MessagePartDescription streamPart = new MessagePartDescription(partName, partNs);
System\ServiceModel\Description\MessageContractImporter.cs (4)
1242MessagePartDescription bodyPart = new MessagePartDescription(name, ns); 1491bodyPart = isHeader ? (MessagePartDescription)new MessageHeaderDescription(part.Name, String.Empty) : new MessagePartDescription(part.Name, String.Empty); 1511MessagePartDescription part = isHeader ? (MessagePartDescription)new MessageHeaderDescription(element.Name, ns) : new MessagePartDescription(element.Name, ns); 2017MessagePartDescription part = new MessagePartDescription(xmlName, member.Namespace == null ? string.Empty : member.Namespace);
System\ServiceModel\Description\MessagePartDescription.cs (1)
66return new MessagePartDescription(this);
System\ServiceModel\Description\OperationGenerator.cs (1)
633MessagePartDescription wrapperPart = new MessagePartDescription(messageDescription.Body.WrapperName, messageDescription.Body.WrapperNamespace);
System\ServiceModel\Description\TypeLoader.cs (3)
1210parameterPart = new MessagePartDescription(name.EncodedName, defaultNS); 1380partDescription = new MessagePartDescription(defaultName.EncodedName, defaultNS); 1387partDescription = new MessagePartDescription(partName.EncodedName, partNs);
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
552MessagePartDescription part = new MessagePartDescription(xmlName.EncodedName, string.Empty);
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\MessageBuilder.cs (2)
170MessagePartDescription messagePart = new MessagePartDescription(NamingHelper.XmlName(partName), partNamespace) 201MessagePartDescription messagePart = new MessagePartDescription(NamingHelper.XmlName(partName), partNamespace)
170 references to MessagePartDescription
System.ServiceModel (149)
System\ServiceModel\Channels\SecurityBindingElementImporter.cs (3)
129void ValidateExistingOrSetNewProtectionLevel(MessagePartDescription part, MessageDescription message, OperationDescription operation, ContractDescription contract, ProtectionLevel newProtectionLevel) 280foreach (MessagePartDescription body in message.Body.Parts) 433foreach (MessagePartDescription body in message.Body.Parts)
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (4)
315MessagePartDescription messagePart = CreateMessagePartDescription(parameterType, 339MessagePartDescription messagePart = CreateMessagePartDescription(returnType, 349MessagePartDescription CreateMessagePartDescription(Type bodyType, 354MessagePartDescription partDescription = new MessagePartDescription(name.EncodedName, ns);
System\ServiceModel\ComIntegration\DispatchProxy.cs (1)
129foreach (MessagePartDescription param in msgDesc.Body.Parts)
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (12)
20Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes; 21Dictionary<MessagePartDescription, bool> isNonNillableReferenceTypes; 31internal void Add(MessagePartDescription part, CodeTypeReference typeReference, ICollection<CodeTypeReference> knownTypeReferences, bool isNonNillableReferenceType) 39isNonNillableReferenceTypes = new Dictionary<MessagePartDescription, bool>(); 54internal Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> KnownTypes 59this.knownTypes = new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>(); 89foreach (MessagePartDescription part in message.Body.Parts) 100void AddKnownTypesForPart(OperationContractGenerationContext context, MessagePartDescription part, Dictionary<CodeTypeReference, object> operationKnownTypes) 160foreach (MessagePartDescription bodyPart in messageDescription.Body.Parts) 168void ValidateForParameterMode(MessagePartDescription part) 184public void AddMemberAttributes(XmlName messageName, MessagePartDescription part, CodeAttributeDeclarationCollection attributesImported, CodeAttributeDeclarationCollection typeAttributes, CodeAttributeDeclarationCollection fieldAttributes) 224private bool IsNonNillableReferenceType(MessagePartDescription part)
System\ServiceModel\Description\MessageBodyDescription.cs (3)
18private MessagePartDescription returnValue; 30foreach (MessagePartDescription mpd in other.Parts) 51public MessagePartDescription ReturnValue
System\ServiceModel\Description\MessageContractExporter.cs (6)
164void ExportAnyMessage(WsdlNS.Message message, MessagePartDescription part) 206MessagePartDescription streamPart = new MessagePartDescription(partName, partNs); 558protected void ExportMessagePart(WsdlNS.Message message, MessagePartDescription part, XmlQualifiedName typeName, XmlSchemaType xsdType, bool isOptional, bool isNillable, bool skipSchemaExport, bool generateElement, string wrapperNs, XmlSchemaSequence wrapperSequence, XmlSchemaSet schemaSet) 613foreach (MessagePartDescription part in message.Body.Parts) 627foreach (MessagePartDescription part in message.Body.Parts) 983foreach (MessagePartDescription bodyPart in description.Body.Parts)
System\ServiceModel\Description\MessageContractImporter.cs (31)
501MessagePartDescription partDesc = CurrentSchemaImporter.ImportMessagePart(part, false/*isHeader*/, isEncoded); 734MessagePartDescription[] parts = CurrentSchemaImporter.ImportWrapperElement(elementName); 750MessagePartDescription part = parts[partIndex]; 770bool CheckIsRef(MessageDescription requestMessage, MessagePartDescription part) 772foreach (MessagePartDescription requestPart in requestMessage.Body.Parts) 780bool CompareMessageParts(MessagePartDescription x, MessagePartDescription y) 1242MessagePartDescription bodyPart = new MessagePartDescription(name, ns); 1484internal MessagePartDescription ImportMessagePart(WsdlNS.MessagePart part, bool isHeader, bool isEncoded) 1486MessagePartDescription bodyPart = null; 1491bodyPart = isHeader ? (MessagePartDescription)new MessageHeaderDescription(part.Name, String.Empty) : new MessagePartDescription(part.Name, String.Empty); 1499internal MessagePartDescription ImportParameterElement(XmlQualifiedName elementName, bool isHeader, bool isMultiple) 1504internal MessagePartDescription ImportParameterElement(XmlSchemaElement element, string ns, bool isHeader, bool isMultiple) 1511MessagePartDescription part = isHeader ? (MessagePartDescription)new MessageHeaderDescription(element.Name, ns) : new MessagePartDescription(element.Name, ns); 1543internal abstract string ImportType(MessagePartDescription part, XmlQualifiedName typeName, bool isEncoded); 1545internal abstract string ImportElement(MessagePartDescription part, XmlSchemaElement element, bool isEncoded); 1547internal abstract MessagePartDescription[] ImportWrapperElement(XmlQualifiedName elementName); 1651internal override MessagePartDescription[] ImportWrapperElement(XmlQualifiedName elementName) 1659return new MessagePartDescription[0]; 1664MessagePartDescription[] parts = new MessagePartDescription[rootSequence.Items.Count]; 1678internal override string ImportType(MessagePartDescription part, XmlQualifiedName typeName, bool isEncoded) 1709internal override string ImportElement(MessagePartDescription part, XmlSchemaElement element, bool isEncoded) 2009internal override MessagePartDescription[] ImportWrapperElement(XmlQualifiedName elementName) 2017MessagePartDescription part = new MessagePartDescription(xmlName, member.Namespace == null ? string.Empty : member.Namespace); 2022return (MessagePartDescription[])parts.ToArray(typeof(MessagePartDescription)); 2055internal override string ImportType(MessagePartDescription part, XmlQualifiedName typeName, bool isEncoded) 2070internal override string ImportElement(MessagePartDescription part, XmlSchemaElement element, bool isEncoded) 2078private string AddPartType(MessagePartDescription part, XmlMembersMapping membersMapping, bool isEncoded)
System\ServiceModel\Description\MessageHeaderDescription.cs (1)
40internal override MessagePartDescription Clone()
System\ServiceModel\Description\MessagePartDescription.cs (2)
48internal MessagePartDescription(MessagePartDescription other) 64internal virtual MessagePartDescription Clone()
System\ServiceModel\Description\MessagePartDescriptionCollection.cs (2)
14public class MessagePartDescriptionCollection : KeyedCollection<XmlQualifiedName, MessagePartDescription> 22protected override XmlQualifiedName GetKeyForItem(MessagePartDescription item)
System\ServiceModel\Description\MessagePropertyDescription.cs (1)
25internal override MessagePartDescription Clone()
System\ServiceModel\Description\OperationGenerator.cs (24)
22void AddMemberAttributes(XmlName messageName, MessagePartDescription part, CodeAttributeDeclarationCollection attributesImported, CodeAttributeDeclarationCollection typeAttributes, CodeAttributeDeclarationCollection fieldAttributes); 28Dictionary<MessagePartDescription, CodeTypeReference> parameterTypes; 29Dictionary<MessagePartDescription, CodeAttributeDeclarationCollection> parameterAttributes; 30Dictionary<MessagePartDescription, string> specialPartName; 36internal Dictionary<MessagePartDescription, CodeAttributeDeclarationCollection> ParameterAttributes 41this.parameterAttributes = new Dictionary<MessagePartDescription, CodeAttributeDeclarationCollection>(); 46internal Dictionary<MessagePartDescription, CodeTypeReference> ParameterTypes 51this.parameterTypes = new Dictionary<MessagePartDescription, CodeTypeReference>(); 56internal Dictionary<MessagePartDescription, string> SpecialPartName 61this.specialPartName = new Dictionary<MessagePartDescription, string>(); 66internal void GenerateOperation(OperationContractGenerationContext context, ref OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes) 99readonly Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> KnownTypes; 122internal MethodSignatureGenerator(OperationGenerator parent, OperationContractGenerationContext context, OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes) 617foreach (MessagePartDescription part in messageDescription.Body.Parts) 633MessagePartDescription wrapperPart = new MessagePartDescription(messageDescription.Body.WrapperName, messageDescription.Body.WrapperNamespace); 665foreach (MessagePartDescription setting in this.Request.Body.Parts) 672foreach (MessagePartDescription setting in this.Response.Body.Parts) 687void AddWrapperPart(XmlName messageName, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, IPartCodeGenerator partGenerator, MessagePartDescription part, CodeAttributeDeclarationCollection typeAttributes) 707void GenerateBodyPart(int order, MessagePartDescription messagePart, IPartCodeGenerator partCodeGenerator, bool generateTypedMessage, bool isEncoded, string defaultNS) 741CodeTypeReference GetParameterType(MessagePartDescription setting) 751void AddAdditionalAttributes(MessagePartDescription setting, CodeAttributeDeclarationCollection attributes, bool isAdditionalAttributesAllowed) 842internal static void GenerateMessageBodyMemberAttribute(int order, MessagePartDescription setting, CodeAttributeDeclarationCollection attributes, XmlName defaultName) 855static void GenerateMessageContractMemberAttribute<T>(int order, MessagePartDescription setting, CodeAttributeDeclarationCollection attrs, XmlName defaultName) 879internal static void GenerateMessageParameterAttribute(MessagePartDescription setting, CodeAttributeDeclarationCollection attributes, XmlName defaultName, string defaultNS)
System\ServiceModel\Description\ServiceContractGenerator.cs (5)
700Array.Sort((MessagePartDescription[])xHeaders, MessagePartDescriptionComparer.Singleton); 701Array.Sort((MessagePartDescription[])yHeaders, MessagePartDescriptionComparer.Singleton); 717class MessagePartDescriptionComparer : IComparer<MessagePartDescription> 722public int Compare(MessagePartDescription p1, MessagePartDescription p2)
System\ServiceModel\Description\TypeLoader.cs (13)
583internal static int CompareMessagePartDescriptions(MessagePartDescription a, MessagePartDescription b) 1180MessagePartDescription partDescription = CreateParameterPartDescription(new XmlName(parameters[index].Name), defaultNS, index, parameters[index], GetParameterType(parameters[index])); 1204private static MessagePartDescription CreateParameterPartDescription(XmlName defaultName, string defaultNS, int index, ICustomAttributeProvider attrProvider, Type type) 1206MessagePartDescription parameterPart; 1300List<MessagePartDescription> bodyPartDescriptionList = new List<MessagePartDescription>(); 1353AddSortedParts<MessagePartDescription>(bodyPartDescriptionList, messageDescription.Body.Parts); 1368MessagePartDescription CreateMessagePartDescription(Type bodyType, 1375MessagePartDescription partDescription = null; 1504where T : MessagePartDescription 1506MessagePartDescription[] partDescriptions = partDescriptionList.ToArray(); 1509Array.Sort<MessagePartDescription>(partDescriptions, CompareMessagePartDescriptions);
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (7)
486MessagePartDescription returnPart; 491MessagePartDescription wrapperPart = GetWrapperPart(message); 526private MessagePartDescription GetWrapperPart(MessageDescription message) 530MessagePartDescription bodyPart = message.Body.Parts[0]; 541private MessagePartDescriptionCollection GetWrappedParts(MessagePartDescription bodyPart) 552MessagePartDescription part = new MessagePartDescription(xmlName.EncodedName, string.Empty); 935static internal XmlReflectionMember GetXmlReflectionMember(MessagePartDescription part, bool isRpc, bool isEncoded, bool isWrapped)
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (7)
21Dictionary<MessagePartDescription, PartInfo> partInfoTable; 34partInfoTable = new Dictionary<MessagePartDescription, PartInfo>(); 56internal void Add(MessagePartDescription part, XmlMemberMapping memberMapping, XmlMembersMapping membersMapping, bool isEncoded) 134foreach (MessagePartDescription part in body.Parts) 144operationGenerator.GenerateOperation(context, ref style, xmlSerializerFormatAttribute.IsEncoded, new WrappedBodyTypeGenerator(context), new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>()); 179private void GeneratePartType(Dictionary<XmlMembersMapping, XmlMembersMapping> alreadyExported, MessagePartDescription part, string partNamespace) 240public void AddMemberAttributes(XmlName messageName, MessagePartDescription part, CodeAttributeDeclarationCollection importedAttributes, CodeAttributeDeclarationCollection typeAttributes, CodeAttributeDeclarationCollection fieldAttributes)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (4)
161PartInfo CreatePartInfo(MessagePartDescription part, OperationFormatStyle style, DataContractSerializerOperationBehavior serializerFactory) 532MessagePartDescription description; 539public PartInfo(MessagePartDescription description, XmlDictionaryString dictionaryName, XmlDictionaryString dictionaryNamespace, 556public MessagePartDescription Description
System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
472internal static bool IsValidReturnValue(MessagePartDescription returnValue) 576foreach (MessagePartDescription part in description.Headers) 579foreach (MessagePartDescription part in description.Properties) 582foreach (MessagePartDescription part in description.Body.Parts)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (5)
269static PartInfo AddToDictionary(XmlDictionary dictionary, MessagePartDescription part, bool isRpc) 334static bool IsTypeSupported(MessagePartDescription bodyDescription) 670MessagePartDescription description; 674public PartInfo(MessagePartDescription description, XmlDictionaryString dictionaryName, XmlDictionaryString dictionaryNamespace, XmlDictionaryString itemName, XmlDictionaryString itemNamespace) 693public MessagePartDescription Description
System\ServiceModel\Dispatcher\StreamFormatter.cs (6)
28MessagePartDescription streamPart = ValidateAndGetStreamPart(messageDescription, isRequest, operationName); 34StreamFormatter(MessageDescription messageDescription, MessagePartDescription streamPart, string operationName, bool isRequest) 166static MessagePartDescription ValidateAndGetStreamPart(MessageDescription messageDescription, bool isRequest, string operationName) 168MessagePartDescription part = GetStreamPart(messageDescription); 187foreach (MessagePartDescription part in messageDescription.Body.Parts) 195static MessagePartDescription GetStreamPart(MessageDescription messageDescription)
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (4)
293foreach (MessagePartDescription bodyPart in messageInfo.RpcEncodedTypedMessageBodyParts) 315void SerializeBody(XmlDictionaryWriter writer, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, object returnValue, object[] parameters) 351foreach (MessagePartDescription bodyPart in messageInfo.RpcEncodedTypedMessageBodyParts) 368object DeserializeBody(XmlDictionaryReader reader, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, object[] parameters, bool isRequest)
System\ServiceModel\Security\ChannelProtectionRequirements.cs (3)
275if (!(message.Body.ReturnValue.GetType().Equals(typeof(MessagePartDescription)))) 280MessagePartDescription desc = message.Body.ReturnValue; 291foreach (MessagePartDescription body in message.Body.Parts)
System\ServiceModel\Security\WSTrust.cs (1)
1260foreach (MessagePartDescription part in message.Body.Parts)
System.ServiceModel.Activities (10)
System\ServiceModel\Activities\ContractValidationHelper.cs (4)
322MessagePartDescription targetPart = null; 437foreach (MessagePartDescription targetPart in targetMessageBody.Parts) 494foreach (MessagePartDescription messagePart in message.Body.Parts) 584foreach (MessagePartDescription messagePart in parts)
System\ServiceModel\Activities\MessageBuilder.cs (2)
170MessagePartDescription messagePart = new MessagePartDescription(NamingHelper.XmlName(partName), partNamespace) 201MessagePartDescription messagePart = new MessagePartDescription(NamingHelper.XmlName(partName), partNamespace)
System\ServiceModel\Activities\Receive.cs (2)
535foreach (MessagePartDescription messagePart in message.Body.Parts) 567foreach (MessagePartDescription messagePart in message.Body.Parts)
System\ServiceModel\Activities\SendReply.cs (2)
306foreach (MessagePartDescription messagePart in parts) 338foreach (MessagePartDescription messagePart in message.Body.Parts)
System.ServiceModel.Web (11)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (1)
117MessagePartDescription messagePart = requestMessage.Body.Parts[p];
System\ServiceModel\Description\WebHttpBehavior.cs (7)
830static Collection<MessagePartDescription> CloneParts(MessageDescription md) 833Collection<MessagePartDescription> bodyParametersClone = new Collection<MessagePartDescription>(); 836MessagePartDescription copy = bodyParameters[i].Clone(); 911Collection<MessagePartDescription> originalParts = CloneParts(operationDescription.Messages[0]); 912Collection<MessagePartDescription> parts = CloneParts(operationDescription.Messages[0]); 1246foreach (MessagePartDescription description in md.Body.Parts)
System\ServiceModel\Dispatcher\HelpPage.cs (1)
259IEnumerable<MessagePartDescription> parts =
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (2)
153MessagePartDescription mpd = operationDescription.Messages[0].Body.Parts[i]; 210foreach (MessagePartDescription mpd in od.Messages[0].Body.Parts)