C# 클래스 System.Xml.Xsl.Runtime.XmlAttributeCache

This writer supports only writer methods which write attributes. Attributes are stored in a data structure until StartElementContent() is called, at which time the attributes are flushed to the wrapped writer. In the case of duplicate attributes, the last attribute's value is used.
상속: System.Xml.XmlRawWriter, IRemovableWriter
파일 보기 프로젝트 열기: gbarnett/shared-source-cli-2.0 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Forward call to wrapped writer.

Flush ( ) : void

Forward call to wrapped writer.

Init ( XmlRawWriter wrapped ) : void

Initialize the cache. Use this method instead of a constructor in order to reuse the cache.

WriteComment ( string text ) : void
WriteEndAttribute ( ) : void

No-op.

WriteEntityRef ( string name ) : void
WriteProcessingInstruction ( string name, string text ) : void
WriteStartAttribute ( string prefix, string localName, string ns ) : void

Add an attribute to the cache. If an attribute if the same name already exists, replace it.

WriteStartElement ( string prefix, string localName, string ns ) : void
WriteString ( string text ) : void

Add a block of text to the cache. This text block makes up some or all of the untyped string value of the current attribute.

WriteValue ( object value ) : void

All other WriteValue methods are implemented by XmlWriter to delegate to WriteValue(object) or WriteValue(string), so only these two methods need to be implemented.

WriteValue ( string value ) : void

비공개 메소드들

메소드 설명
EnsureAttributeCache ( ) : void

Ensure that attribute array has been created and is large enough for at least one additional entry.

FlushAttributes ( ) : void
SetWrappedWriter ( XmlRawWriter writer ) : void

The wrapped writer will callback on this method if it wishes to remove itself from the pipeline.

StartElementContent ( ) : void

Send cached, non-overriden attributes to the specified writer. Calling this method has the side effect of clearing the attribute cache.

WriteEndElement ( string prefix, string localName, string ns ) : void
WriteNamespaceDeclaration ( string prefix, string ns ) : void

Pass through namespaces to underlying writer. If any attributes have been cached, flush them.

메소드 상세

Close() 공개 메소드

Forward call to wrapped writer.
public Close ( ) : void
리턴 void

Flush() 공개 메소드

Forward call to wrapped writer.
public Flush ( ) : void
리턴 void

Init() 공개 메소드

Initialize the cache. Use this method instead of a constructor in order to reuse the cache.
public Init ( XmlRawWriter wrapped ) : void
wrapped System.Xml.XmlRawWriter
리턴 void

WriteComment() 공개 메소드

public WriteComment ( string text ) : void
text string
리턴 void

WriteEndAttribute() 공개 메소드

No-op.
public WriteEndAttribute ( ) : void
리턴 void

WriteEntityRef() 공개 메소드

public WriteEntityRef ( string name ) : void
name string
리턴 void

WriteProcessingInstruction() 공개 메소드

public WriteProcessingInstruction ( string name, string text ) : void
name string
text string
리턴 void

WriteStartAttribute() 공개 메소드

Add an attribute to the cache. If an attribute if the same name already exists, replace it.
public WriteStartAttribute ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
리턴 void

WriteStartElement() 공개 메소드

public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
리턴 void

WriteString() 공개 메소드

Add a block of text to the cache. This text block makes up some or all of the untyped string value of the current attribute.
public WriteString ( string text ) : void
text string
리턴 void

WriteValue() 공개 메소드

All other WriteValue methods are implemented by XmlWriter to delegate to WriteValue(object) or WriteValue(string), so only these two methods need to be implemented.
public WriteValue ( object value ) : void
value object
리턴 void

WriteValue() 공개 메소드

public WriteValue ( string value ) : void
value string
리턴 void