Share via


SharePointCommandException.GetObjectData Method

Sets SerializationInfo with information about the exception.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.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
)

Parameters

  • info
    Type: SerializationInfo

    The SerializationInfo object to populate with data.

  • context
    Type: StreamingContext

    The destination for this serialization. See System.Runtime.Serialization.StreamingContext for more information.

Implements

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

.NET Framework Security

See Also

Reference

SharePointCommandException Class

Microsoft.VisualStudio.SharePoint Namespace