Share via


DocumentToPublishingPageConversionException.GetObjectData Method

Serializes the specified object.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Overrides Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
'Usage
Dim instance As DocumentToPublishingPageConversionException
Dim info As SerializationInfo
Dim context As StreamingContext

instance.GetObjectData(info, context)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(
    SerializationInfo info,
    StreamingContext context
)

Parameters

Implements

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

Remarks

Exceptions must be serializable.

See Also

Reference

DocumentToPublishingPageConversionException Class

DocumentToPublishingPageConversionException Members

Microsoft.SharePoint.Publishing Namespace

DocumentToPublishingPageConversionException