System\ServiceModel\Channels\Message.cs (29)
181return CreateMessage(version, action, new XmlReaderBodyWriter(body, version.Envelope));
261return new BodyWriterMessage(version, action, new FaultBodyWriter(fault, version.Envelope));
411if (this.Version.Envelope != EnvelopeVersion.None)
417if (this.Version.Envelope != EnvelopeVersion.None)
425if (this.Version.Envelope != EnvelopeVersion.None)
437writer.WriteStartElement(messageDictionary.Prefix.Value, messageDictionary.Body, Version.Envelope.DictionaryNamespace);
479EnvelopeVersion envelopeVersion = Version.Envelope;
490EnvelopeVersion envelopeVersion = Version.Envelope;
528if (this.Version.Envelope != EnvelopeVersion.None)
545if (this.Version.Envelope != EnvelopeVersion.None)
584Message.ReadFromBodyContentsToEnd(reader, this.Version.Envelope);
721if (this.Version.Envelope != EnvelopeVersion.None)
743if (this.Version.Envelope != EnvelopeVersion.None)
1257return Message.ReadStartBody(reader, this.Version.Envelope, out this.isFault, out this.isEmpty);
1302if (desiredVersion.Envelope == EnvelopeVersion.None)
1313if (desiredVersion.Envelope != envelopeVersion)
1315Exception versionMismatchException = new ArgumentException(SR.GetString(SR.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader");
1444writer.WriteStartElement(bodyPrefix, MessageStrings.Body, Version.Envelope.Namespace);
1450EnvelopeVersion envelopeVersion = Version.Envelope;
1457EnvelopeVersion envelopeVersion = Version.Envelope;
1508if (desiredVersion.Envelope == EnvelopeVersion.None)
1516if (desiredVersion.Envelope != envelopeVersion)
1518Exception versionMismatchException = new ArgumentException(SR.GetString(SR.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader");
1625if (HasHeaderElement(reader, headers.MessageVersion.Envelope))
1635if (this.Version.Envelope != EnvelopeVersion.None)
1638if (HasHeaderElement(reader, headers.MessageVersion.Envelope))
1738EnvelopeVersion envelopeVersion = Version.Envelope;
1749EnvelopeVersion envelopeVersion = Version.Envelope;
1767writer.WriteStartElement(reader.Prefix, MessageStrings.Body, Version.Envelope.Namespace);