Share via


UITestException.GetObjectData Method

This member has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses this member throws a MethodAccessException.This member overrides Exception.GetObjectData(SerializationInfo, StreamingContext), and more complete documentation might be available in that topic.This member overrides Exception.GetObjectData(SerializationInfo, StreamingContext).

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
<SecurityCriticalAttribute> _
Public Overrides Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
[SecurityCriticalAttribute]
public override void GetObjectData(
    SerializationInfo info,
    StreamingContext context
)
[SecurityCriticalAttribute]
public:
virtual void GetObjectData(
    SerializationInfo^ info, 
    StreamingContext context
) override
[<SecurityCriticalAttribute>]
abstract GetObjectData : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 
[<SecurityCriticalAttribute>]
override GetObjectData : 
        info:SerializationInfo * 
        context:StreamingContext -> unit
public override function GetObjectData(
    info : SerializationInfo, 
    context : StreamingContext
)

Parameters

  • info
    Type: SerializationInfo

    The SerializationInfo that holds the serialized object data about the exception being thrown.

  • context
    Type: StreamingContext

    The StreamingContext that contains contextual information about the source or destination.

Implements

ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)

See Also

Reference

UITestException Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace