Share via


TestExecutionSection.SerializeToXmlElement Method

Serializes the settings to the provided XML element name.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Syntax

'Declaration
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

Parameters

  • elementName
    Type: System.String
    The name of the XML element section to which to serialize the values.

Return Value

Type: System.Boolean
true if the serialization was successful; otherwise, false.

.NET Framework Security

See Also

Reference

TestExecutionSection Class

Microsoft.VisualStudio.TestTools.Execution Namespace