System.Xml.XmlDictionaryWriter.WriteValue C# (CSharp) Method

WriteValue() public method

public WriteValue ( System.Guid value ) : void
value System.Guid
return void
        public virtual void WriteValue(Guid value)
        {
            WriteString(value.ToString());
        }

Same methods

XmlDictionaryWriter::WriteValue ( IStreamProvider value ) : void
XmlDictionaryWriter::WriteValue ( System value ) : void
XmlDictionaryWriter::WriteValue ( System.TimeSpan value ) : void
XmlDictionaryWriter::WriteValue ( UniqueId value ) : void
XmlDictionaryWriter::WriteValue ( XmlDictionaryString value ) : void

Usage Example

        protected override void OnWriteAddressHeaderContents (XmlDictionaryWriter writer)
        {
            writer.WriteStartElement(XD.DotNetAtomicTransactionExternalDictionary.LocalTransactionId,
                                     XD.DotNetAtomicTransactionExternalDictionary.Namespace);

            writer.WriteValue(this.transactionId);
            writer.WriteEndElement();

            if (this.contextId != null)
            {
                writer.WriteStartElement(XD.DotNetAtomicTransactionExternalDictionary.ContextId,
                                         XD.DotNetAtomicTransactionExternalDictionary.Namespace);

                writer.WriteValue(this.contextId);
                writer.WriteEndElement();
            }

            if (this.tokenId != null)
            {
                writer.WriteStartElement(XD.DotNetAtomicTransactionExternalDictionary.TokenId,
                                         XD.DotNetAtomicTransactionExternalDictionary.Namespace);

                writer.WriteValue(this.tokenId);
                writer.WriteEndElement();
            }
        }
All Usage Examples Of System.Xml.XmlDictionaryWriter::WriteValue