System.Xml.XmlBinaryReader.SetInput C# (CSharp) Méthode

SetInput() public méthode

public SetInput ( Stream stream, IXmlDictionary dictionary, XmlDictionaryReaderQuotas quotas, XmlBinaryReaderSession session, OnXmlDictionaryReaderClose onClose ) : void
stream System.IO.Stream
dictionary IXmlDictionary
quotas XmlDictionaryReaderQuotas
session XmlBinaryReaderSession
onClose OnXmlDictionaryReaderClose
Résultat void
        public void SetInput(Stream stream,
                             IXmlDictionary dictionary,
                            XmlDictionaryReaderQuotas quotas,
                            XmlBinaryReaderSession session,
                            OnXmlDictionaryReaderClose onClose)
        {
            if (stream == null)
                throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream));
            MoveToInitial(quotas, session, null);
            BufferReader.SetBuffer(stream, dictionary, session);
            _buffered = false;
        }

Same methods

XmlBinaryReader::SetInput ( byte buffer, int offset, int count, IXmlDictionary dictionary, XmlDictionaryReaderQuotas quotas, XmlBinaryReaderSession session, OnXmlDictionaryReaderClose onClose ) : void

Usage Example

 public static XmlDictionaryReader CreateBinaryReader(byte[] buffer, int offset, int count,
                                                      IXmlDictionary dictionary,
                                                      XmlDictionaryReaderQuotas quotas,
                                                      XmlBinaryReaderSession session,
                                                      OnXmlDictionaryReaderClose onClose)
 {
     XmlBinaryReader reader = new XmlBinaryReader();
     reader.SetInput(buffer, offset, count, dictionary, quotas, session, onClose);
     return reader;
 }
All Usage Examples Of System.Xml.XmlBinaryReader::SetInput