|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Classe XmlWriterSettings
Namespace: System.Xml
Assembly: System.Xml (em System.Xml.dll)
O tipo XmlWriterSettings expõe os membros a seguir.
| Nome | Descrição | |
|---|---|---|
![]() ![]() | Async | |
![]() ![]() ![]() ![]() | CheckCharacters | |
![]() ![]() ![]() ![]() | CloseOutput | |
![]() ![]() ![]() ![]() | ConformanceLevel | |
![]() | DoNotEscapeUriAttributes | |
![]() ![]() ![]() ![]() | Encoding | |
![]() ![]() ![]() ![]() | Indent | |
![]() ![]() ![]() ![]() | IndentChars | |
![]() ![]() ![]() | NamespaceHandling | |
![]() ![]() ![]() ![]() | NewLineChars | |
![]() ![]() ![]() ![]() | NewLineHandling | |
![]() ![]() ![]() ![]() | NewLineOnAttributes | |
![]() ![]() ![]() ![]() | OmitXmlDeclaration | |
![]() ![]() | OutputMethod | |
![]() ![]() | WriteEndDocumentOnClose |
| Nome | Descrição | |
|---|---|---|
![]() ![]() ![]() ![]() | Clone | |
![]() ![]() ![]() ![]() | Equals(Object) | |
![]() ![]() ![]() ![]() | GetHashCode | |
![]() ![]() ![]() ![]() | GetType | |
![]() ![]() ![]() ![]() | Reset | |
![]() ![]() ![]() ![]() | ToString |
Observação |
|---|
XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent = true; settings.OmitXmlDeclaration = true; settings.NewLineOnAttributes = true; writer = XmlWriter.Create(Console.Out, settings); writer.WriteStartElement("order"); writer.WriteAttributeString("orderID", "367A54"); writer.WriteAttributeString("date", "2001-05-03"); writer.WriteElementString("price", "19.95"); writer.WriteEndElement(); writer.Flush();
<order orderID="367A54" date="2001-05-03"> <price>19.95</price> </order>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Função Server Core sem suporte), Windows Server 2008 R2 (Função Server Core com suporte com o SP1 ou posterior, Itanium sem suporte)
O .NET Framework não oferece suporte a todas as versões de cada plataforma. Para obter uma lista das versões com suporte, consulte .Requisitos de sistema do NET Framework.


