XmlWriterSettings.DoNotEscapeUriAttributes是否在VB.Net 4.0中可用?

XmlWriterSettings.DoNotEscapeUriAttributes是否在VB.Net 4.0中可用?,xml,vb.net,.net-4.0,Xml,Vb.net,.net 4.0,正如标题所说。我的同事正在使用C#.Net Framework 4.5,他可以很好地设置该属性,但在VB.Net 4.0中我得到: “'DoNotEscapeUriAttributes'不是'System.Xml.XmlWriterSettings'的成员。 MSDN说这应该是“从2.0开始可用”,并在VB下列出了它,据我所知,它应该在那里吗 我正在使用的代码: Dim XMLSettings As XmlWriterSettings = New XmlWriterSettings With {

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

“'DoNotEscapeUriAttributes'不是'System.Xml.XmlWriterSettings'的成员。

MSDN说这应该是“从2.0开始可用”,并在VB下列出了它,据我所知,它应该在那里吗

我正在使用的代码:

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

我在上找不到该属性,因此它在.NET framework 4.0中似乎不受支持。

是的,我想我在那里也找不到它。看起来两页之间是矛盾的。