TestExecutionSection.SerializeElement 方法

读取 app.config 文件,并用该文件的测试执行部分中的值填充此对象的属性。

命名空间:  Microsoft.VisualStudio.TestTools.Execution
程序集:  Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

语法

声明
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

参数

  • serializeCollectionKey
    类型:System.Boolean
    如果仅序列化键属性值,则为 true;否则为 false。

返回值

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

.NET Framework 安全性

请参见

参考

TestExecutionSection 类

Microsoft.VisualStudio.TestTools.Execution 命名空间