Compartilhar via


Método TestMessage.GetObjectData

Preenche uma SerializationInfo usando os dados que é necessário para serializar o objeto de destino.

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

Sintaxe

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

Parâmetros

Segurança do .NET Framework

Consulte também

Referência

TestMessage Classe

Namespace Microsoft.VisualStudio.TestTools.Common

SerializationInfo

StreamingContext