TestExecutionSection.SerializeToXmlElement 方法
将该设置序列化为提供的 XML 元素名称。
命名空间: Microsoft.VisualStudio.TestTools.Execution
程序集: Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
语法
声明
Protected Overrides Function SerializeToXmlElement ( _
writer As XmlWriter, _
elementName As String _
) As Boolean
protected override bool SerializeToXmlElement(
XmlWriter writer,
string elementName
)
protected:
virtual bool SerializeToXmlElement(
XmlWriter^ writer,
String^ elementName
) override
abstract SerializeToXmlElement :
writer:XmlWriter *
elementName:string -> bool
override SerializeToXmlElement :
writer:XmlWriter *
elementName:string -> bool
protected override function SerializeToXmlElement(
writer : XmlWriter,
elementName : String
) : boolean
参数
- writer
类型:System.Xml.XmlWriter
一个 XmlWriter 对象。
- elementName
类型:System.String
要将值序列化为的 XML 元素部分的名称。
返回值
类型:System.Boolean
如果序列化成功,则为 true;否则为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。