C# Class System.Xml.XmlReader

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
AddLineInfo string
CalcBufferSize int
CanReadContentAs bool
CanReadContentAs bool
CheckElement void
CreateReadContentAsException System.Exception
CreateReadContentAsException System.Exception
CreateReadElementContentAsException System.Exception
CreateReadElementContentAsException System.Exception
CreateSqlReader XmlReader
CreateWriterForInnerOuterXml XmlWriter
FinishReadElementContentAsXxx void
GetEncoding System.Text.Encoding
GetV1ConformanceLevel ConformanceLevel
GetXmlTextReaderImpl XmlTextReaderImpl
HasValueInternal bool
InternalReadContentAsString string
IsTextualNode bool
ReadElementString string
ReadElementString string
ReadElementString string
ReadString string
SetNamespacesFlag void
SetupReadElementContentAsXxx bool
SkipSubtree bool
WriteAttributeValue void
WriteNode void

Méthodes publiques

Méthode Description
Close ( ) : void
Create ( Stream input ) : XmlReader
Create ( Stream input, XmlReaderSettings settings ) : XmlReader
Create ( Stream input, XmlReaderSettings settings, String baseUri ) : XmlReader
Create ( Stream input, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
Create ( String inputUri, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
Create ( TextReader input ) : XmlReader
Create ( TextReader input, XmlReaderSettings settings ) : XmlReader
Create ( TextReader input, XmlReaderSettings settings, String baseUri ) : XmlReader
Create ( TextReader input, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
Create ( XmlReader reader, XmlReaderSettings settings ) : XmlReader
Create ( string inputUri ) : XmlReader
Create ( string inputUri, XmlReaderSettings settings ) : XmlReader
Dispose ( ) : void
GetAttribute ( int i ) : string
GetAttribute ( string name ) : string
GetAttribute ( string name, string namespaceURI ) : string
IsName ( string str ) : bool
IsNameToken ( string str ) : bool
IsStartElement ( ) : bool
IsStartElement ( string name ) : bool
IsStartElement ( string localname, string ns ) : bool
LookupNamespace ( string prefix ) : string
MoveToAttribute ( string name ) : bool
MoveToAttribute ( string name, string ns ) : bool
MoveToAttribute ( int i ) : void
MoveToContent ( ) : System.Xml.XmlNodeType
MoveToElement ( ) : bool
MoveToFirstAttribute ( ) : bool
MoveToNextAttribute ( ) : bool
Read ( ) : bool
ReadAttributeValue ( ) : bool
ReadContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver ) : object
ReadContentAsBase64 ( byte buffer, int index, int count ) : int
ReadContentAsBinHex ( byte buffer, int index, int count ) : int
ReadContentAsBoolean ( ) : bool
ReadContentAsDateTime ( ) : System.DateTime
ReadContentAsDateTimeOffset ( ) : DateTimeOffset
ReadContentAsDecimal ( ) : decimal
ReadContentAsDouble ( ) : double
ReadContentAsFloat ( ) : float
ReadContentAsInt ( ) : int
ReadContentAsLong ( ) : long
ReadContentAsObject ( ) : object
ReadContentAsString ( ) : string
ReadElementContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver ) : object
ReadElementContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver, string localName, string namespaceURI ) : object
ReadElementContentAsBase64 ( byte buffer, int index, int count ) : int
ReadElementContentAsBinHex ( byte buffer, int index, int count ) : int
ReadElementContentAsBoolean ( ) : bool
ReadElementContentAsBoolean ( string localName, string namespaceURI ) : bool
ReadElementContentAsDateTime ( ) : System.DateTime
ReadElementContentAsDateTime ( string localName, string namespaceURI ) : System.DateTime
ReadElementContentAsDecimal ( ) : decimal
ReadElementContentAsDecimal ( string localName, string namespaceURI ) : decimal
ReadElementContentAsDouble ( ) : double
ReadElementContentAsDouble ( string localName, string namespaceURI ) : double
ReadElementContentAsFloat ( ) : float
ReadElementContentAsFloat ( string localName, string namespaceURI ) : float
ReadElementContentAsInt ( ) : int
ReadElementContentAsInt ( string localName, string namespaceURI ) : int
ReadElementContentAsLong ( ) : long
ReadElementContentAsLong ( string localName, string namespaceURI ) : long
ReadElementContentAsObject ( ) : object
ReadElementContentAsObject ( string localName, string namespaceURI ) : object
ReadElementContentAsString ( ) : string
ReadElementContentAsString ( string localName, string namespaceURI ) : string
ReadEndElement ( ) : void
ReadInnerXml ( ) : string
ReadOuterXml ( ) : string
ReadStartElement ( ) : void
ReadStartElement ( string name ) : void
ReadStartElement ( string localname, string ns ) : void
ReadSubtree ( ) : XmlReader
ReadToDescendant ( string name ) : bool
ReadToDescendant ( string localName, string namespaceURI ) : bool
ReadToFollowing ( string name ) : bool
ReadToFollowing ( string localName, string namespaceURI ) : bool
ReadToNextSibling ( string name ) : bool
ReadToNextSibling ( string localName, string namespaceURI ) : bool
ReadValueChunk ( char buffer, int index, int count ) : int
ResolveEntity ( ) : void
Skip ( ) : void
this ( int i ) : string
this ( string name ) : string
this ( string name, string namespaceURI ) : string

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
AddLineInfo ( string message, IXmlLineInfo lineInfo ) : string
CalcBufferSize ( Stream input ) : int
CanReadContentAs ( ) : bool
CanReadContentAs ( System.Xml.XmlNodeType nodeType ) : bool
CheckElement ( string localName, string namespaceURI ) : void
CreateReadContentAsException ( string methodName ) : Exception
CreateReadContentAsException ( string methodName, System.Xml.XmlNodeType nodeType, IXmlLineInfo lineInfo ) : Exception
CreateReadElementContentAsException ( string methodName ) : Exception
CreateReadElementContentAsException ( string methodName, System.Xml.XmlNodeType nodeType, IXmlLineInfo lineInfo ) : Exception
CreateSqlReader ( Stream input, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
CreateWriterForInnerOuterXml ( StringWriter sw ) : XmlWriter
FinishReadElementContentAsXxx ( ) : void
GetEncoding ( XmlReader reader ) : Encoding
GetV1ConformanceLevel ( XmlReader reader ) : ConformanceLevel
GetXmlTextReaderImpl ( XmlReader reader ) : XmlTextReaderImpl
HasValueInternal ( System.Xml.XmlNodeType nodeType ) : bool
InternalReadContentAsString ( ) : string
IsTextualNode ( System.Xml.XmlNodeType nodeType ) : bool
ReadElementString ( ) : string
ReadElementString ( string name ) : string
ReadElementString ( string localname, string ns ) : string
ReadString ( ) : string
SetNamespacesFlag ( XmlTextWriter xtw ) : void
SetupReadElementContentAsXxx ( string methodName ) : bool
SkipSubtree ( ) : bool
WriteAttributeValue ( XmlWriter xtw ) : void
WriteNode ( XmlWriter xtw, bool defattr ) : void

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Create() public static méthode

public static Create ( Stream input ) : XmlReader
input Stream
Résultat XmlReader

Create() public static méthode

public static Create ( Stream input, XmlReaderSettings settings ) : XmlReader
input Stream
settings XmlReaderSettings
Résultat XmlReader

Create() public static méthode

public static Create ( Stream input, XmlReaderSettings settings, String baseUri ) : XmlReader
input Stream
settings XmlReaderSettings
baseUri String
Résultat XmlReader

Create() public static méthode

public static Create ( Stream input, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
input Stream
settings XmlReaderSettings
inputContext XmlParserContext
Résultat XmlReader

Create() public static méthode

public static Create ( String inputUri, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
inputUri String
settings XmlReaderSettings
inputContext XmlParserContext
Résultat XmlReader

Create() public static méthode

public static Create ( TextReader input ) : XmlReader
input TextReader
Résultat XmlReader

Create() public static méthode

public static Create ( TextReader input, XmlReaderSettings settings ) : XmlReader
input TextReader
settings XmlReaderSettings
Résultat XmlReader

Create() public static méthode

public static Create ( TextReader input, XmlReaderSettings settings, String baseUri ) : XmlReader
input TextReader
settings XmlReaderSettings
baseUri String
Résultat XmlReader

Create() public static méthode

public static Create ( TextReader input, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
input TextReader
settings XmlReaderSettings
inputContext XmlParserContext
Résultat XmlReader

Create() public static méthode

public static Create ( XmlReader reader, XmlReaderSettings settings ) : XmlReader
reader XmlReader
settings XmlReaderSettings
Résultat XmlReader

Create() public static méthode

public static Create ( string inputUri ) : XmlReader
inputUri string
Résultat XmlReader

Create() public static méthode

public static Create ( string inputUri, XmlReaderSettings settings ) : XmlReader
inputUri string
settings XmlReaderSettings
Résultat XmlReader

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetAttribute() public abstract méthode

public abstract GetAttribute ( int i ) : string
i int
Résultat string

GetAttribute() public abstract méthode

public abstract GetAttribute ( string name ) : string
name string
Résultat string

GetAttribute() public abstract méthode

public abstract GetAttribute ( string name, string namespaceURI ) : string
name string
namespaceURI string
Résultat string

IsName() public static méthode

public static IsName ( string str ) : bool
str string
Résultat bool

IsNameToken() public static méthode

public static IsNameToken ( string str ) : bool
str string
Résultat bool

IsStartElement() public méthode

public IsStartElement ( ) : bool
Résultat bool

IsStartElement() public méthode

public IsStartElement ( string name ) : bool
name string
Résultat bool

IsStartElement() public méthode

public IsStartElement ( string localname, string ns ) : bool
localname string
ns string
Résultat bool

LookupNamespace() public abstract méthode

public abstract LookupNamespace ( string prefix ) : string
prefix string
Résultat string

MoveToAttribute() public abstract méthode

public abstract MoveToAttribute ( string name ) : bool
name string
Résultat bool

MoveToAttribute() public abstract méthode

public abstract MoveToAttribute ( string name, string ns ) : bool
name string
ns string
Résultat bool

MoveToAttribute() public méthode

public MoveToAttribute ( int i ) : void
i int
Résultat void

MoveToContent() public méthode

public MoveToContent ( ) : System.Xml.XmlNodeType
Résultat System.Xml.XmlNodeType

MoveToElement() public abstract méthode

public abstract MoveToElement ( ) : bool
Résultat bool

MoveToFirstAttribute() public abstract méthode

public abstract MoveToFirstAttribute ( ) : bool
Résultat bool

MoveToNextAttribute() public abstract méthode

public abstract MoveToNextAttribute ( ) : bool
Résultat bool

Read() public abstract méthode

public abstract Read ( ) : bool
Résultat bool

ReadAttributeValue() public abstract méthode

public abstract ReadAttributeValue ( ) : bool
Résultat bool

ReadContentAs() public méthode

public ReadContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver ) : object
returnType System.Type
namespaceResolver IXmlNamespaceResolver
Résultat object

ReadContentAsBase64() public méthode

public ReadContentAsBase64 ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
Résultat int

ReadContentAsBinHex() public méthode

public ReadContentAsBinHex ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
Résultat int

ReadContentAsBoolean() public méthode

public ReadContentAsBoolean ( ) : bool
Résultat bool

ReadContentAsDateTime() public méthode

public ReadContentAsDateTime ( ) : System.DateTime
Résultat System.DateTime

ReadContentAsDateTimeOffset() public méthode

public ReadContentAsDateTimeOffset ( ) : DateTimeOffset
Résultat DateTimeOffset

ReadContentAsDecimal() public méthode

public ReadContentAsDecimal ( ) : decimal
Résultat decimal

ReadContentAsDouble() public méthode

public ReadContentAsDouble ( ) : double
Résultat double

ReadContentAsFloat() public méthode

public ReadContentAsFloat ( ) : float
Résultat float

ReadContentAsInt() public méthode

public ReadContentAsInt ( ) : int
Résultat int

ReadContentAsLong() public méthode

public ReadContentAsLong ( ) : long
Résultat long

ReadContentAsObject() public méthode

public ReadContentAsObject ( ) : object
Résultat object

ReadContentAsString() public méthode

public ReadContentAsString ( ) : string
Résultat string

ReadElementContentAs() public méthode

public ReadElementContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver ) : object
returnType System.Type
namespaceResolver IXmlNamespaceResolver
Résultat object

ReadElementContentAs() public méthode

public ReadElementContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver, string localName, string namespaceURI ) : object
returnType System.Type
namespaceResolver IXmlNamespaceResolver
localName string
namespaceURI string
Résultat object

ReadElementContentAsBase64() public méthode

public ReadElementContentAsBase64 ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
Résultat int

ReadElementContentAsBinHex() public méthode

public ReadElementContentAsBinHex ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
Résultat int

ReadElementContentAsBoolean() public méthode

public ReadElementContentAsBoolean ( ) : bool
Résultat bool

ReadElementContentAsBoolean() public méthode

public ReadElementContentAsBoolean ( string localName, string namespaceURI ) : bool
localName string
namespaceURI string
Résultat bool

ReadElementContentAsDateTime() public méthode

public ReadElementContentAsDateTime ( ) : System.DateTime
Résultat System.DateTime

ReadElementContentAsDateTime() public méthode

public ReadElementContentAsDateTime ( string localName, string namespaceURI ) : System.DateTime
localName string
namespaceURI string
Résultat System.DateTime

ReadElementContentAsDecimal() public méthode

public ReadElementContentAsDecimal ( ) : decimal
Résultat decimal

ReadElementContentAsDecimal() public méthode

public ReadElementContentAsDecimal ( string localName, string namespaceURI ) : decimal
localName string
namespaceURI string
Résultat decimal

ReadElementContentAsDouble() public méthode

public ReadElementContentAsDouble ( ) : double
Résultat double

ReadElementContentAsDouble() public méthode

public ReadElementContentAsDouble ( string localName, string namespaceURI ) : double
localName string
namespaceURI string
Résultat double

ReadElementContentAsFloat() public méthode

public ReadElementContentAsFloat ( ) : float
Résultat float

ReadElementContentAsFloat() public méthode

public ReadElementContentAsFloat ( string localName, string namespaceURI ) : float
localName string
namespaceURI string
Résultat float

ReadElementContentAsInt() public méthode

public ReadElementContentAsInt ( ) : int
Résultat int

ReadElementContentAsInt() public méthode

public ReadElementContentAsInt ( string localName, string namespaceURI ) : int
localName string
namespaceURI string
Résultat int

ReadElementContentAsLong() public méthode

public ReadElementContentAsLong ( ) : long
Résultat long

ReadElementContentAsLong() public méthode

public ReadElementContentAsLong ( string localName, string namespaceURI ) : long
localName string
namespaceURI string
Résultat long

ReadElementContentAsObject() public méthode

public ReadElementContentAsObject ( ) : object
Résultat object

ReadElementContentAsObject() public méthode

public ReadElementContentAsObject ( string localName, string namespaceURI ) : object
localName string
namespaceURI string
Résultat object

ReadElementContentAsString() public méthode

public ReadElementContentAsString ( ) : string
Résultat string

ReadElementContentAsString() public méthode

public ReadElementContentAsString ( string localName, string namespaceURI ) : string
localName string
namespaceURI string
Résultat string

ReadEndElement() public méthode

public ReadEndElement ( ) : void
Résultat void

ReadInnerXml() public méthode

public ReadInnerXml ( ) : string
Résultat string

ReadOuterXml() public méthode

public ReadOuterXml ( ) : string
Résultat string

ReadStartElement() public méthode

public ReadStartElement ( ) : void
Résultat void

ReadStartElement() public méthode

public ReadStartElement ( string name ) : void
name string
Résultat void

ReadStartElement() public méthode

public ReadStartElement ( string localname, string ns ) : void
localname string
ns string
Résultat void

ReadSubtree() public méthode

public ReadSubtree ( ) : XmlReader
Résultat XmlReader

ReadToDescendant() public méthode

public ReadToDescendant ( string name ) : bool
name string
Résultat bool

ReadToDescendant() public méthode

public ReadToDescendant ( string localName, string namespaceURI ) : bool
localName string
namespaceURI string
Résultat bool

ReadToFollowing() public méthode

public ReadToFollowing ( string name ) : bool
name string
Résultat bool

ReadToFollowing() public méthode

public ReadToFollowing ( string localName, string namespaceURI ) : bool
localName string
namespaceURI string
Résultat bool

ReadToNextSibling() public méthode

public ReadToNextSibling ( string name ) : bool
name string
Résultat bool

ReadToNextSibling() public méthode

public ReadToNextSibling ( string localName, string namespaceURI ) : bool
localName string
namespaceURI string
Résultat bool

ReadValueChunk() public méthode

public ReadValueChunk ( char buffer, int index, int count ) : int
buffer char
index int
count int
Résultat int

ResolveEntity() public abstract méthode

public abstract ResolveEntity ( ) : void
Résultat void

Skip() public méthode

public Skip ( ) : void
Résultat void

this() public méthode

public this ( int i ) : string
i int
Résultat string

this() public méthode

public this ( string name ) : string
name string
Résultat string

this() public méthode

public this ( string name, string namespaceURI ) : string
name string
namespaceURI string
Résultat string