Rediger

Del via


XmlTextWriter.QuoteChar Property

Definition

Gets or sets which character to use to quote attribute values.

public:
 property char QuoteChar { char get(); void set(char value); };
public char QuoteChar { get; set; }
member this.QuoteChar : char with get, set
Public Property QuoteChar As Char

Property Value

The character to use to quote attribute values. This must be a single quote (') or a double quote ("). The default is a double quote.

Exceptions

Setting this property to something other than either a single or double quote.

Remarks

Note

Starting with the .NET Framework 2.0, we recommend that you create XmlWriter instances by using the XmlWriter.Create method and the XmlWriterSettings class to take advantage of new functionality.

Applies to