ItemChange.GetObjectData Method
Serializes the ItemChange object data to the specified SerializationInfo object. This method cannot be inherited.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
Syntax
'Declaration
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim instance As ItemChange
Dim info As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(info, context)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public void GetObjectData(
SerializationInfo info,
StreamingContext context
)
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter = true)]
public:
virtual void GetObjectData(
SerializationInfo^ info,
StreamingContext context
) sealed
[<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 final function GetObjectData(
info : SerializationInfo,
context : StreamingContext
)
Parameters
- info
Type: System.Runtime.Serialization.SerializationInfo
The SerializationInfo object that receives the serialized object data.
- context
Type: System.Runtime.Serialization.StreamingContext
The StreamingContext object that contains contextual information about the source or destination.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | info is a null reference (Nothing in Visual Basic). |