TestRun.GetObjectData 方法

使用序列化目标对象所需的数据来填充 SerializationInfo

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

语法

声明
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public void GetObjectData(
    SerializationInfo info,
    StreamingContext context
)
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter = true)]
public:
virtual void GetObjectData(
    SerializationInfo^ info, 
    StreamingContext context
) sealed
[<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)>]
abstract GetObjectData : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 
[<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)>]
override GetObjectData : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 
public final function GetObjectData(
    info : SerializationInfo, 
    context : StreamingContext
)

参数

实现

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

.NET Framework 安全性

请参见

参考

TestRun 类

Microsoft.VisualStudio.TestTools.Common 命名空间

ISerializable

SerializationInfo

StreamingContext