編輯

共用方式為


XmlSerializationReader.DecodeName Property

Definition

Gets or sets a value that determines whether XML strings are translated into valid .NET type names.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 property bool DecodeName { bool get(); void set(bool value); };
protected bool DecodeName { get; set; }
member this.DecodeName : bool with get, set
Protected Property DecodeName As Boolean

Property Value

true if XML strings are decoded into valid .NET type names; otherwise, false.

Remarks

The EncodeName method writes valid XML from invalid sources. For example, the ColumnName property of the DataColumn class can contain spaces, which are invalid as XML. The DecodeName reads the encoded XML and restores it to the original value. However, the Read method of the XmlSchema class cannot read such encoded XML. In that case, set the EscapeName property to false to disable the encoding of the XML.

Applies to