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
参数
- writer
类型:System.Xml.XmlWriter
一个 XmlWriter 对象。
- serializeCollectionKey
类型:System.Boolean
如果仅序列化键属性值,则为 true;否则为 false。
返回值
类型:System.Boolean
如果序列化成功,则为 true;否则为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。