System.Xml.XmlWriter.WriteBase64 C# (CSharp) Method

WriteBase64() public abstract method

public abstract WriteBase64 ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
return void
        public abstract void WriteBase64(byte[] buffer, int index, int count);

Usage Example

        public void WriteXml( XmlWriter writer )
        {
            writer.WriteStartElement( XmlEncryptionConstants.Prefix, XmlEncryptionConstants.Elements.CipherData, XmlEncryptionConstants.Namespace );
            writer.WriteStartElement( XmlEncryptionConstants.Prefix, XmlEncryptionConstants.Elements.CipherValue, XmlEncryptionConstants.Namespace );

            if ( _iv != null )
                writer.WriteBase64( _iv, 0, _iv.Length );

            writer.WriteBase64( _cipherText, 0, _cipherText.Length );

            writer.WriteEndElement(); // CipherValue
            writer.WriteEndElement(); // CipherData
        }
All Usage Examples Of System.Xml.XmlWriter::WriteBase64