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

参数

  • elementName
    类型:System.String
    要将值序列化为的 XML 元素部分的名称。

返回值

类型:System.Boolean
如果序列化成功,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

TestExecutionSection 类

Microsoft.VisualStudio.TestTools.Execution 命名空间