FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (29)
139return CreateMessage(version, action, new XmlReaderBodyWriter(body, version.Envelope));
219return new BodyWriterMessage(version, action, new FaultBodyWriter(fault, version.Envelope));
349if (this.Version.Envelope != EnvelopeVersion.None)
355if (this.Version.Envelope != EnvelopeVersion.None)
363if (this.Version.Envelope != EnvelopeVersion.None)
375writer.WriteStartElement(messageDictionary.Prefix.Value, messageDictionary.Body, Version.Envelope.DictionaryNamespace);
429EnvelopeVersion envelopeVersion = Version.Envelope;
440EnvelopeVersion envelopeVersion = Version.Envelope;
487if (this.Version.Envelope != EnvelopeVersion.None)
504if (this.Version.Envelope != EnvelopeVersion.None)
543Message.ReadFromBodyContentsToEnd(reader, this.Version.Envelope);
701if (this.Version.Envelope != EnvelopeVersion.None)
723if (this.Version.Envelope != EnvelopeVersion.None)
1192return Message.ReadStartBody(reader, this.Version.Envelope, out _isFault, out _isEmpty);
1237if (desiredVersion.Envelope == EnvelopeVersion.None)
1248if (desiredVersion.Envelope != envelopeVersion)
1250Exception versionMismatchException = new ArgumentException(string.Format(SRServiceModel.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader");
1378writer.WriteStartElement(_bodyPrefix, MessageStrings.Body, Version.Envelope.Namespace);
1384EnvelopeVersion envelopeVersion = Version.Envelope;
1391EnvelopeVersion envelopeVersion = Version.Envelope;
1442if (desiredVersion.Envelope == EnvelopeVersion.None)
1450if (desiredVersion.Envelope != envelopeVersion)
1452Exception versionMismatchException = new ArgumentException(string.Format(SRServiceModel.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader");
1557if (HasHeaderElement(reader, _headers.MessageVersion.Envelope))
1567if (this.Version.Envelope != EnvelopeVersion.None)
1570if (HasHeaderElement(reader, _headers.MessageVersion.Envelope))
1670EnvelopeVersion envelopeVersion = Version.Envelope;
1681EnvelopeVersion envelopeVersion = Version.Envelope;
1699writer.WriteStartElement(reader.Prefix, MessageStrings.Body, Version.Envelope.Namespace);