AFDataLossException.GetObjectData Method
- Last UpdatedSep 18, 2024
- PI System
- AF SDK 2024
- Developer
Populates a SerializationInfo with the data needed to serialize
the target object.
Namespace: OSIsoft.AF.Data
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.0.1156
Syntax
[SecurityCriticalAttribute] public override void GetObjectData( SerializationInfo info, StreamingContext context )
<SecurityCriticalAttribute> Public Overrides Sub GetObjectData ( info As SerializationInfo, context As StreamingContext ) Dim instance As AFDataLossException Dim info As SerializationInfo Dim context As StreamingContext instance.GetObjectData(info, context)
public: [SecurityCriticalAttribute] virtual void GetObjectData( SerializationInfo^ info, StreamingContext context ) override
[<SecurityCriticalAttribute>] abstract GetObjectData : info : SerializationInfo * context : StreamingContext -> unit [<SecurityCriticalAttribute>] override GetObjectData : info : SerializationInfo * context : StreamingContext -> unit
Parameters
- info
- Type: System.Runtime.Serialization.SerializationInfo
The SerializationInfo to populate with data. - context
- Type: System.Runtime.Serialization.StreamingContext
The destination (see StreamingContext) for this serialization.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)
Remarks
Any objects included in the SerializationInfo are automatically tracked and serialized by the formatter. This implementation uses the object's Persist() method to create the serialization data for the object.
Code that calls GetObjectData requires the SecurityPermission for providing serialization services.