是否在VB.Net 4.0中提供了XmlWriterSettings.DoNotEscapeUriAttributes?

时间:2016-04-15 13:34:16

标签: xml vb.net .net-4.0

正如标题所说。我的同事正在使用C#.Net Framework 4.5可以设置该属性,但对于我在VB.Net 4.0中,我得到:

"' DoNotEscapeUriAttributes'不是' System.Xml.XmlWriterSettings'"

的成员

MSDN说这应该是"从2.0"开始可用,并在VB下列出它,据我所知,它应该在那里? https://msdn.microsoft.com/en-us/library/system.xml.xmlwritersettings.donotescapeuriattributes(v=vs.110).aspx

我使用的代码:

Dim XMLSettings As XmlWriterSettings = New XmlWriterSettings With
{
.Indent = False,
.DoNotEscapeUriAttributes = True,
.NewLineHandling = NewLineHandling.None,
.OmitXmlDeclaration = True
}

1 个答案:

答案 0 :(得分:0)

我在https://msdn.microsoft.com/en-us/library/system.xml.xmlwritersettings%28v=vs.100%29.aspx上找不到该属性,因此.NET Framework 4.0似乎不支持该属性。