TestStateEvent.GetObjectData Method

Populates a SerializationInfo object with the data that is required to serialize the target object.

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

Syntax

'Declaration
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Overrides Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(
    SerializationInfo info,
    StreamingContext context
)
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter = true)]
public:
virtual void GetObjectData(
    SerializationInfo^ info, 
    StreamingContext context
) override
[<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 override function GetObjectData(
    info : SerializationInfo, 
    context : StreamingContext
)

Parameters

  • context
    Type: StreamingContext

    The StreamingContext object that represents the destination for this serialization.

Implements

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Exceptions

Exception Condition
SecurityException

The caller does not have the required permission.

.NET Framework Security

See Also

Reference

TestStateEvent Class

Microsoft.VisualStudio.TestTools.Common Namespace

SerializationInfo

StreamingContext