Partager via


TestExecutionSection.SerializeElement Method

Reads the app.config file and populates the properties of this object by using values from the test execution section of the file.

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

Syntax

'Declaration
Protected Overrides Function SerializeElement ( _
    writer As XmlWriter, _
    serializeCollectionKey As Boolean _
) As Boolean
protected override bool SerializeElement(
    XmlWriter writer,
    bool serializeCollectionKey
)
protected:
virtual bool SerializeElement(
    XmlWriter^ writer, 
    bool serializeCollectionKey
) override
abstract SerializeElement : 
        writer:XmlWriter * 
        serializeCollectionKey:bool -> bool  
override SerializeElement : 
        writer:XmlWriter * 
        serializeCollectionKey:bool -> bool
protected override function SerializeElement(
    writer : XmlWriter, 
    serializeCollectionKey : boolean
) : boolean

Parameters

  • writer
    Type: XmlWriter

    An XmlWriter object.

  • serializeCollectionKey
    Type: Boolean

    true to serialize only the key property values; otherwise, false.

Return Value

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

.NET Framework Security

See Also

Reference

TestExecutionSection Class

Microsoft.VisualStudio.TestTools.Execution Namespace