XmlWriterSettings.DoNotEscapeUriAttributes 在 VB.Net 4.0 中可用吗?
Is XmlWriterSettings.DoNotEscapeUriAttributes available in VB.Net 4.0?
正如标题所说。我使用 C#.Net Framework 4.5 的同事可以设置 属性 很好,但对我来说 VB.Net 4.0 我得到:
"'DoNotEscapeUriAttributes' 不是 'System.Xml.XmlWriterSettings'" 的成员。
MSDN 说这应该是 "Available since 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
}
我在 https://msdn.microsoft.com/en-us/library/system.xml.xmlwritersettings%28v=vs.100%29.aspx 上找不到 属性,因此 .NET Framework 4.0 似乎不支持它。
正如标题所说。我使用 C#.Net Framework 4.5 的同事可以设置 属性 很好,但对我来说 VB.Net 4.0 我得到:
"'DoNotEscapeUriAttributes' 不是 'System.Xml.XmlWriterSettings'" 的成员。
MSDN 说这应该是 "Available since 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
}
我在 https://msdn.microsoft.com/en-us/library/system.xml.xmlwritersettings%28v=vs.100%29.aspx 上找不到 属性,因此 .NET Framework 4.0 似乎不支持它。