ContentTypeSyndicationException.GetObjectData Method
Sets the SerializationInfo object with information about the current exception.
Namespace: Microsoft.SharePoint.Taxonomy.ContentTypeSync
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.SerializationFormatter)> _
Public Overrides Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim instance As ContentTypeSyndicationException
Dim info As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(info, context)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
public override void GetObjectData(
SerializationInfo info,
StreamingContext context
)
Parameters
info
Type: System.Runtime.Serialization.SerializationInfoSerializationInfo object that holds the serialized object data about the exception that is being thrown.
context
Type: System.Runtime.Serialization.StreamingContextThe StreamingContext object that contains contextual information about the source or destination.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)
See Also
Reference
ContentTypeSyndicationException Class